summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-19 18:23:34 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-19 18:23:34 +0200
commit01a5f41e9a0b45036494f56ba76362017d54217c (patch)
tree80eff31b2f59b5a66079db2e96a1151a98a0e922 /src
parent62b84fad399a919108a3ac95b28ccc5feaada6db (diff)
Fix typing issue in winwidget_center_image
Diffstat (limited to 'src')
-rw-r--r--src/winwidget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index 599e4bf..4e8fec8 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -957,13 +957,14 @@ void winwidget_center_image(winwidget winwid)
winwid->im_y = (scr_height - lround(winwid->im_h * winwid->zoom)) >> 1;
} else {
if (opt.geom_flags & WidthValue)
- winwid->im_x = (opt.geom_w - lround(winwid->im_w * winwid->zoom)) >> 1;
+ winwid->im_x = ((int)opt.geom_w - lround(winwid->im_w * winwid->zoom)) >> 1;
else
winwid->im_x = 0;
if (opt.geom_flags & HeightValue)
- winwid->im_y = (opt.geom_h - lround(winwid->im_h * winwid->zoom)) >> 1;
+ winwid->im_y = ((int)opt.geom_h - lround(winwid->im_h * winwid->zoom)) >> 1;
else
winwid->im_y = 0;
+ printf("-> %d %d \n", winwid->im_x, winwid->im_y);
}
}