Skip to content

Commit 7c52752

Browse files
committed
window management
1 parent d36d183 commit 7c52752

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/controller/Display.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,18 @@ namespace udd {
213213
openSPI();
214214
resume();
215215

216-
// int width = config.width + config.xOffset;
217-
// int height = config.height + config.yOffset;
218216

219217
setWindow(p1, p2, rotation);
220218

221219
width = p2.x - p1.x + 1;
222220
height = p2.y - p1.y + 1;
223221

222+
if (image.getHeight() != height ||
223+
image.getWidth() != width) {
224+
fprintf(stderr, "Image size does not match window size. Height: [Image=%d, Window=%d] Width: [Image=%d, Window=%d]\n",
225+
image.getHeight(), height, image.getWidth, width);
226+
}
227+
224228
/*
225229
switch (rotation) {
226230
case DEGREE_0:

0 commit comments

Comments
 (0)