Skip to content

Commit

Permalink
Merge pull request #245 from Sdraugel/fix-bug-232
Browse files Browse the repository at this point in the history
removed code that causes qr codes to generate incorrectly on linux an…
  • Loading branch information
codebude authored Nov 16, 2020
2 parents 04ecf92 + aa51a86 commit f6701c1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions QRCoder/QRCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,7 @@ public Bitmap GetGraphic(int pixelsPerModule, Color darkColor, Color lightColor,
if (module)
{
var r = new Rectangle(x - offset, y - offset, pixelsPerModule, pixelsPerModule);

if (drawIconFlag)
{
var region = new Region(r);
region.Exclude(iconPath);
gfx.FillRegion(darkBrush, region);
}
else
{
gfx.FillRectangle(darkBrush, r);
}
gfx.FillRectangle(darkBrush, r);
}
else
{
Expand Down

0 comments on commit f6701c1

Please sign in to comment.