Fix Canvas.drawRect on older Android

This commit is contained in:
Emux 2023-12-21 20:32:44 +02:00
parent bcf6a7f630
commit 29673062b5
No known key found for this signature in database
GPG key ID: 64ED9980896038C3

View file

@ -175,7 +175,7 @@ public class BInstallerView extends View {
int tidx = gridPos2Tileindex(ix, iy); int tidx = gridPos2Tileindex(ix, iy);
int tilesize = BInstallerSizes.getRd5Size(tidx); int tilesize = BInstallerSizes.getRd5Size(tidx);
if (tilesize > 0) { 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);
} }
} }
} }
@ -214,7 +214,7 @@ public class BInstallerView extends View {
canvas.drawLine(fw * ix, fh * (iy + 1), fw * (ix + 1), fh * iy, pnt); canvas.drawLine(fw * ix, fh * (iy + 1), fw * (ix + 1), fh * iy, pnt);
// draw frame // 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);
} }
} }
} }