Skip to content

Commit

Permalink
Fix rotate by 180 degrees bug (patch by wwsmiff, thanks!)
Browse files Browse the repository at this point in the history
Closes #754
Closes #740

Squashed commit of the following:

commit 7770f4c
Author: wwsmiff <[email protected]>
Date:   Sun Mar 17 01:54:55 2024 +0530

    Remove font file

commit 70bc586
Author: wwsmiff <[email protected]>
Date:   Sun Mar 17 01:54:23 2024 +0530

    Fix rotate by 180 degrees bug
  • Loading branch information
derf committed Jun 30, 2024
1 parent 08b269d commit 1547ccb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/imlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1547ccb

Please sign in to comment.