forked from qt-creator/qt-creator
QmlProfiler: fixed artifacts when rendering background
Change-Id: I7707657b6788316a82ca9b3df33bf00e3692d75e Reviewed-on: http://codereview.qt.nokia.com/1360 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
committed by
Aurindam Jana
parent
df1f5adb0e
commit
db6bf5be59
@@ -103,7 +103,7 @@ TiledCanvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function drawBackgroundBars( ctxt, region ) {
|
function drawBackgroundBars( ctxt, region ) {
|
||||||
var barHeight = labels.height / labels.rowCount;
|
var barHeight = Math.round(labels.height / labels.rowCount);
|
||||||
var originY = labels.y
|
var originY = labels.y
|
||||||
for (var i=0; i<labels.rowCount; i++) {
|
for (var i=0; i<labels.rowCount; i++) {
|
||||||
ctxt.fillStyle = i%2 ? "#f3f3f3" : "white"
|
ctxt.fillStyle = i%2 ? "#f3f3f3" : "white"
|
||||||
|
|||||||
Reference in New Issue
Block a user