Skip to content

Commit

Permalink
Fix unlock screen grid positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
xbelanch committed Aug 29, 2023
1 parent 02e3f13 commit db72bb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/apps/UnlockScreenApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class UnlockScreenApp extends App {
cellWidth: cell_width,
cellHeight: 16,
position: Phaser.Display.Align.CENTER,
x: this.fakeOS.width / 2 - ((cell_width * (dots_size - 1)) / 2),
x: (this.fakeOS.width / 2) - ((cell_width * dots_size) / 2),
y: 274
});
this.getActiveLayer().add(this.dots);
Expand Down Expand Up @@ -180,8 +180,8 @@ export default class UnlockScreenApp extends App {
cellWidth: ellipse_radius + offset,
cellHeight: ellipse_radius + offset,
position: Phaser.Display.Align.CENTER,
x: this.fakeOS.width / 2 - (ellipse_radius + offset),
y: 420
x: (this.fakeOS.width / 2) - (((ellipse_radius * 3) + (offset * 3)) / 2),
y: 340
});
this.getActiveLayer().add(this.numericPad.getAll());
}
Expand Down

0 comments on commit db72bb6

Please sign in to comment.