simplify rotate function further

This commit is contained in:
speedie 2023-03-04 15:54:47 +01:00
parent 4e9713ddae
commit 80f6c1bbfe

View file

@ -16,9 +16,7 @@ flipimage(void)
void void
rotateimage(void) rotateimage(void)
{ {
if (!rotation) return; rotation %= 4;
if (rotation > 4) rotation = 1;
imlib_image_orientate(rotation); imlib_image_orientate(rotation);
} }