From 80f6c1bbfeeae6519f33534f1dae4c792edfd2e4 Mon Sep 17 00:00:00 2001 From: speedie Date: Sat, 4 Mar 2023 15:54:47 +0100 Subject: [PATCH] simplify rotate function further --- libs/img.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/img.c b/libs/img.c index 1740e58..aba3b07 100644 --- a/libs/img.c +++ b/libs/img.c @@ -16,9 +16,7 @@ flipimage(void) void rotateimage(void) { - if (!rotation) return; - if (rotation > 4) rotation = 1; - + rotation %= 4; imlib_image_orientate(rotation); }