simplify rotate function further
This commit is contained in:
parent
4e9713ddae
commit
80f6c1bbfe
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue