mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #751 from houqp/new_ui_code
fix coordinate calculation for blitbuffer rotation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user