Skip to content

Commit

Permalink
Merge pull request #655 from devemux86/drawrect
Browse files Browse the repository at this point in the history
Fix Canvas.drawRect on older Android

Great, thank you. I have seen that before but was focused on other issues.
  • Loading branch information
afischerdev committed Dec 22, 2023
2 parents bcf6a7f + 2967306 commit 7ffee3a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -175,7 +175,7 @@ protected void onDraw(Canvas canvas) {
int tidx = gridPos2Tileindex(ix, iy);
int tilesize = BInstallerSizes.getRd5Size(tidx);
if (tilesize > 0) {
canvas.drawRect(fw * ix, fh * (iy + 1), fw * (ix + 1), fh * iy, paintGrid);
canvas.drawRect(fw * ix, fh * iy, fw * (ix + 1), fh * (iy + 1), paintGrid);
}
}
}
Expand Down Expand Up @@ -214,7 +214,7 @@ private void drawSelectedTiles(Canvas canvas, Paint pnt, float fw, float fh, int
canvas.drawLine(fw * ix, fh * (iy + 1), fw * (ix + 1), fh * iy, pnt);

// draw frame
canvas.drawRect(fw * ix, fh * (iy + 1), fw * (ix + 1), fh * iy, pnt);
canvas.drawRect(fw * ix, fh * iy, fw * (ix + 1), fh * (iy + 1), pnt);
}
}
}
Expand Down

0 comments on commit 7ffee3a

Please sign in to comment.