Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed Aug 5, 2021
1 parent a01c581 commit 60c9d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/DesktopInput512.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void drawTop(){

// Show Size
NormalizeResult normalized = Placement.normalizeArea(schemX, schemY, cursorX, cursorY, 0, false, 512);
int sizeX = normalized.x - normalized.x2;
int sizeY = normalized.y - normalized.y2;
int sizeX = normalized.x2 - normalized.x + 1;
int sizeY = normalized.y2 - normalized.y + 1;
String info = Integer.toString(sizeX) + ", " + Integer.toString(sizeY);
ui.showLabel(info, 0.02f, cursorX * 8 + 16, cursorY * 8 - 16);
}
Expand Down

0 comments on commit 60c9d29

Please sign in to comment.