simplify rotate function further
This commit is contained in:
parent
4e9713ddae
commit
80f6c1bbfe
|
@ -16,9 +16,7 @@ flipimage(void)
|
|||
void
|
||||
rotateimage(void)
|
||||
{
|
||||
if (!rotation) return;
|
||||
if (rotation > 4) rotation = 1;
|
||||
|
||||
rotation %= 4;
|
||||
imlib_image_orientate(rotation);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue