diff options
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -343,18 +343,14 @@ bool i_rotate(arg_t a) { } bool i_flip(arg_t a) { - flip_t flp = (flip_t) a; + flipdir_t dir = (flipdir_t) a; if (mode == MODE_IMAGE) { - if (flp == FLIP_HORIZONTAL) { - img_flip_horizontal(&img); - return true; - } else if (flp == FLIP_VERTICAL) { - img_flip_vertical(&img); - return true; - } + img_flip(&img, dir); + return true; + } else { + return false; } - return false; } bool i_toggle_antialias(arg_t a) { |