Commit 4e0920ce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

transform: fix off-by-one (fixes #10505)

parent d5ec2e9f
......@@ -102,8 +102,8 @@ static void R90(int *sx, int *sy, int w, int h, int dx, int dy)
}
static void R180(int *sx, int *sy, int w, int h, int dx, int dy)
{
*sx = w - dx;
*sy = h - dy;
*sx = w - 1 - dx;
*sy = h - 1 - dy;
}
static void R270(int *sx, int *sy, int w, int h, int dx, int dy)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment