Skip to content

Commit

Permalink
calcudoku, fix borders glitch when bonus appears with software rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Animtim committed Jul 20, 2023
1 parent 91b694f commit 2fe76d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/activities/calcudoku/Calcudoku.qml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ ActivityBase {
Grid {
z: 100
id: calcudokuColumn
anchors.centerIn: gridLayout
x: Math.round(gridLayout.x + gridLayout.width * 0.5 - width * 0.5)
y: Math.round(gridLayout.y + gridLayout.height * 0.5 - height * 0.5)
width: Math.min(gridLayout.width, gridLayout.height)
height: width
property int squareSize: 2 * Math.round(width / calcudokuColumn.columns / 2)
Expand Down Expand Up @@ -185,7 +186,8 @@ ActivityBase {
Grid {
z: 100
id: calcudokuCages
anchors.centerIn: gridLayout
x: calcudokuColumn.x
y: calcudokuColumn.y
width: calcudokuColumn.width
height: calcudokuColumn.height
columns: calcudokuColumn.columns
Expand Down

0 comments on commit 2fe76d0

Please sign in to comment.