Skip to content

Commit 8fa2220

Browse files
committed
Fix SVG bitmap rendering
1 parent 76214d4 commit 8fa2220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ScratchCPPGui/targetpainter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void TargetPainter::paint(QNanoPainter *painter)
3535
uchar alpha = svgBitmap[pixelIndex + 3];
3636

3737
int x = i % static_cast<int>(width);
38-
int y = i / static_cast<int>(height);
38+
int y = i / static_cast<int>(width);
3939

4040
painter->setFillStyle(QNanoColor(red, green, blue, alpha));
4141
painter->fillRect(x, y, 1, 1);

0 commit comments

Comments
 (0)