Skip to content

Commit 4d10f07

Browse files
committed
window management
1 parent 8423ed7 commit 4d10f07

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/controller/Display.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ namespace udd {
290290
y = config.height - tmpY - 1;
291291
return;
292292

293-
case DEGREE_270: x = config.width - tmpY - 1;
294-
y = config.height - tmpX - 1;
293+
case DEGREE_270: x = config.height - tmpY - 1;
294+
y = config.width - tmpX - 1;
295295
return;
296296

297297
default:

src/displays/DisplayST7789.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,11 @@ namespace udd {
132132

133133
fprintf(stderr, "p2(%3d,%3d) p2(%3d,%3d)\n", x1, y1, x2, y2);
134134
swap(int, x1, x2);
135+
swap(int, y1, y2);
136+
135137
}
136138

139+
137140
fprintf(stderr, "p3(%3d,%3d) p2(%3d,%3d)\n", x1, y1, x2, y2);
138141
fflush(stderr);
139142

0 commit comments

Comments
 (0)