Skip to content
Snippets Groups Projects
Commit 7297ef5f authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Reduce cells overlapping

parent db600d30
No related branches found
No related tags found
1 merge request!19Resolve "Reduce cells overlaping in no borders painter"
Pipeline #4956 passed
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=0.0.15 app.versionName=0.0.16
app.versionCode=15 app.versionCode=16
Reduce cells overlapping.
Réduction du chevauchement des cellules.
...@@ -42,8 +42,8 @@ class GameBoardPainter extends CustomPainter { ...@@ -42,8 +42,8 @@ class GameBoardPainter extends CustomPainter {
cellPaintBackground.color = Color(colorCode); cellPaintBackground.color = Color(colorCode);
cellPaintBackground.style = PaintingStyle.fill; cellPaintBackground.style = PaintingStyle.fill;
final Rect cellBackground = Rect.fromPoints(Offset(x - overlapping, y - overlapping), final Rect cellBackground = Rect.fromPoints(
Offset(x + cellSize + overlapping, y + cellSize + overlapping)); Offset(x, y), Offset(x + cellSize + overlapping, y + cellSize + overlapping));
canvas.drawRect(cellBackground, cellPaintBackground); canvas.drawRect(cellBackground, cellPaintBackground);
} }
......
...@@ -3,7 +3,7 @@ description: Jeweled Game ...@@ -3,7 +3,7 @@ description: Jeweled Game
publish_to: 'none' publish_to: 'none'
version: 0.0.15+15 version: 0.0.16+16
environment: environment:
sdk: '^3.0.0' sdk: '^3.0.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment