diff options
-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); } } |