diff src/image.c @ 415:4f7362028062

Add zoom ratio display to OSD in fullscreen mode. It appears as [%zoom%] in fullscreen info string. It is now displayed by default.
author zas_
date Fri, 18 Apr 2008 23:09:03 +0000
parents 49c1cbe058ae
children 26c6e768bd47
line wrap: on
line diff
--- a/src/image.c	Fri Apr 18 22:31:58 2008 +0000
+++ b/src/image.c	Fri Apr 18 23:09:03 2008 +0000
@@ -18,6 +18,7 @@
 #include "collect.h"
 #include "color-man.h"
 #include "exif.h"
+#include "image-overlay.h"
 #include "layout.h"
 #include "layout_image.h"
 #include "pixbuf-renderer.h"
@@ -109,6 +110,8 @@
 	ImageWindow *imd = data;
 
 	if (imd->title_show_zoom) image_update_title(imd);
+	if (imd->overlay_show_zoom) image_osd_update(imd);
+
 	image_update_util(imd);
 }
 
@@ -1578,7 +1581,7 @@
 			{
 			r = 1.0 / scale;
 			}
-		approx = " ~";
+		approx = "~";
 		}
 
 	if (rint(l) != l) pl = 1;