We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76214d4 commit 8fa2220Copy full SHA for 8fa2220
ScratchCPPGui/targetpainter.cpp
@@ -35,7 +35,7 @@ void TargetPainter::paint(QNanoPainter *painter)
35
uchar alpha = svgBitmap[pixelIndex + 3];
36
37
int x = i % static_cast<int>(width);
38
- int y = i / static_cast<int>(height);
+ int y = i / static_cast<int>(width);
39
40
painter->setFillStyle(QNanoColor(red, green, blue, alpha));
41
painter->fillRect(x, y, 1, 1);
0 commit comments