Skip to content

Commit da5c360

Browse files
format: fix spacing
1 parent 804279a commit da5c360

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

QRCoder/QRCode.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public Bitmap GetGraphic(int pixelsPerModule, Color darkColor, Color lightColor,
6363
using (var lightBrush = new SolidBrush(lightColor))
6464
using (var darkBrush = new SolidBrush(darkColor))
6565
{
66+
gfx.FillRectangle(lightBrush, new Rectangle(0, 0, bmp.Width, bmp.Height));
6667
for (var x = 0; x < size + offset; x += pixelsPerModule)
6768
{
6869
for (var y = 0; y < size + offset; y += pixelsPerModule)
@@ -73,10 +74,6 @@ public Bitmap GetGraphic(int pixelsPerModule, Color darkColor, Color lightColor,
7374
{
7475
gfx.FillRectangle(darkBrush, new Rectangle(x - offset, y - offset, pixelsPerModule, pixelsPerModule));
7576
}
76-
else
77-
{
78-
gfx.FillRectangle(lightBrush, new Rectangle(x - offset, y - offset, pixelsPerModule, pixelsPerModule));
79-
}
8077
}
8178
}
8279

0 commit comments

Comments
 (0)