Skip to content

Commit ef0797a

Browse files
committed
window management
1 parent 9357b44 commit ef0797a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/controller/Display.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,23 +225,23 @@ namespace udd {
225225
image.getHeight(), height, image.getWidth(), width);
226226
}
227227

228-
/*
228+
229229
switch (rotation) {
230230
case DEGREE_0:
231231
case DEGREE_180:
232-
width = windowP2.x - windowP1.x + 1;
233-
height = windowP2.y - windowP1.y + 1;
232+
width = p2.x - p1.x + 1;
233+
height = p2.y - p1.y + 1;
234234
break;
235235
case DEGREE_90:
236236
case DEGREE_270:
237-
height = windowP2.x - windowP1.x + 1;
238-
width = windowP2.y - windowP1.y + 1;
237+
height = p2.x - p1.x + 1;
238+
width = p2.y - p1.y + 1;
239239
break;
240240
default:
241241
width = 0;
242242
height = 0;
243243
}
244-
*/
244+
245245

246246
printRotation(rotation);
247247
fprintf(stderr, "showImage configW=%4d configY=%4d\n", config.width, config.height);

0 commit comments

Comments
 (0)