diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-05-19 18:23:34 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-05-19 18:23:34 +0200 |
commit | 01a5f41e9a0b45036494f56ba76362017d54217c (patch) | |
tree | 80eff31b2f59b5a66079db2e96a1151a98a0e922 | |
parent | 62b84fad399a919108a3ac95b28ccc5feaada6db (diff) |
Fix typing issue in winwidget_center_image
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/winwidget.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ +git HEAD + + * Fix compilation with curl=0 + * Make zoom_default key work properly with --geometry + Wed, 11 May 2011 11:37:32 +0200 Daniel Friesel <derf@finalrewind.org> * Release v1.14 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); } } |