diff src/image-overlay.c @ 482:75b7154e6435

Use image_osd_toggle() in layout_menu_overlay_cb(). Drop layout_image_overlay_update().
author zas_
date Tue, 22 Apr 2008 09:01:29 +0000
parents 67a612985686
children c9e3baeda1b1
line wrap: on
line diff
--- a/src/image-overlay.c	Tue Apr 22 08:53:07 2008 +0000
+++ b/src/image-overlay.c	Tue Apr 22 09:01:29 2008 +0000
@@ -108,13 +108,19 @@
 void image_osd_histogram_chan_toggle(ImageWindow *imd)
 {
 	if (imd->histogram)
+		{
 		histogram_set_channel(imd->histogram, (histogram_get_channel(imd->histogram) +1)%HCHAN_COUNT);
+		image_osd_update(imd);
+		}
 }
 
 void image_osd_histogram_log_toggle(ImageWindow *imd)
 {
 	if (imd->histogram)
+		{
 		histogram_set_mode(imd->histogram, !histogram_get_mode(imd->histogram));
+		image_osd_update(imd);
+		}
 }
 
 void image_osd_toggle(ImageWindow *imd)