From a54d2c5abb6bf4720d57fa35ad6767be51e66cfe Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Mon, 18 Feb 2013 16:14:05 +0800 Subject: [PATCH] fix coordinate calculation for blitbuffer rotation --- blitbuffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blitbuffer.c b/blitbuffer.c index cb55511dd..5fcc5d337 100644 --- a/blitbuffer.c +++ b/blitbuffer.c @@ -285,12 +285,12 @@ static int blitToBufferRotate(lua_State *L) { switch (degree) { case 180: - y_adj = dst->h; + y_adj = dst->h-1; case 90: - x_adj = dst->w; + x_adj = dst->w-1; break; case 270: - y_adj = dst->h; + y_adj = dst->h-1; break; }