Skip to content

Commit 9357b44

Browse files
committed
window management
1 parent c72caff commit 9357b44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controller/Display.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ namespace udd {
194194

195195

196196
void Display::showImage(Image& image) {
197-
showImage(image, Point(0,0), Point(config.width,config.height), DEGREE_0);
197+
showImage(image, Point(0,0), Point(config.width-1, config.height-1), DEGREE_0);
198198
}
199199

200200
void Display::showImage(Image& image, Rotation rotation) {
201201
Point p1 = Point(0, 0);
202-
Point p2 = Point(config.width, config.height);
202+
Point p2 = Point(config.width-1, config.height-1);
203203

204204
if (image.getWidth() > config.width) {
205-
p2 = Point(config.height, config.width);
205+
p2 = Point(config.height-1, config.width-1);
206206
}
207207
showImage(image, p1, p2, rotation);
208208
}

0 commit comments

Comments
 (0)