From 1547ccb28eda8120a03c3edc51ca7a5539c75874 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 30 Jun 2024 11:43:03 +0200 Subject: Fix rotate by 180 degrees bug (patch by wwsmiff, thanks!) Closes #754 Closes #740 Squashed commit of the following: commit 7770f4cf1a1e7ff86238d67053b22b066e3d38ec Author: wwsmiff Date: Sun Mar 17 01:54:55 2024 +0530 Remove font file commit 70bc5864817e308d44fea51a409ef68c2bb9e574 Author: wwsmiff Date: Sun Mar 17 01:54:23 2024 +0530 Fix rotate by 180 degrees bug --- src/imlib.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index 143807d..eb3f522 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -1543,9 +1543,11 @@ void feh_edit_inplace(winwidget w, int op) imlib_image_flip_horizontal(); else { imlib_image_orientate(op); - tmp = w->im_w; - w->im_w = w->im_h; - w->im_h = tmp; + if(op != 2) { + tmp = w->im_w; + w->im_w = w->im_h; + w->im_h = tmp; + } if (FEH_FILE(w->file->data)->info) { FEH_FILE(w->file->data)->info->width = w->im_w; FEH_FILE(w->file->data)->info->height = w->im_h; -- cgit v1.2.3