From 50f9ad14de921295d7a1687799e30562808e940a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Thu, 14 Nov 2013 17:06:20 +0100 Subject: Refactored remote changes --- commands.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 0e0029c..7562bd1 100644 --- a/commands.c +++ b/commands.c @@ -474,17 +474,10 @@ bool i_toggle_antialias(arg_t a) } } -/* a < 0: decrease gamma - * a == 0: reset gamma - * a > 0: increase gamma - */ bool i_change_gamma(arg_t a) { if (mode == MODE_IMAGE) { - long val = (long) a; - int delta = val > 0 ? 1 : (val < 0 ? -1 : -img.gamma); - img_set_gamma(&img, img.gamma + delta); - return true; + return img_change_gamma(&img, (long) a); } else { return false; } -- cgit v1.2.3