diff src/image-overlay.c @ 1312:fcf0e7a6143e

Introduce helpers histogram_toggle_channel() and histogram_toggle_mode().
author zas_
date Mon, 23 Feb 2009 17:20:40 +0000
parents 8d1f9739c06a
children 1fc356f629fe
line wrap: on
line diff
--- a/src/image-overlay.c	Sun Feb 22 17:46:42 2009 +0000
+++ b/src/image-overlay.c	Mon Feb 23 17:20:40 2009 +0000
@@ -130,7 +130,7 @@
 
 	if (!osd || !osd->histogram) return;
 
-	histogram_set_channel(osd->histogram, (histogram_get_channel(osd->histogram) +1)%HCHAN_COUNT);
+	histogram_toggle_channel(osd->histogram);
 	image_osd_update(imd);
 }
 
@@ -140,7 +140,7 @@
 
 	if (!osd || !osd->histogram) return;
 
-	histogram_set_mode(osd->histogram, !histogram_get_mode(osd->histogram));
+	histogram_toggle_mode(osd->histogram);
 	image_osd_update(imd);
 }