Merge pull request #655 from devemux86/drawrect

Fix Canvas.drawRect on older Android

Great, thank you. I have seen that before but was focused on other issues.
This commit is contained in:
afischerdev 2023-12-22 18:23:35 +01:00 committed by GitHub
commit 7ffee3a911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@ public class BInstallerView extends View {
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);
}
}
}
@ -214,7 +214,7 @@ public class BInstallerView extends View {
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);
}
}
}