mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
implement K4 framebuffer support with shadow blitbuffer
previous implementation make fb.bb has double pitch compared to other blitbuffer, which leads to segfault on blitFullFrom method.
This commit is contained in:
@@ -92,7 +92,7 @@ static int blitFullToBuffer(lua_State *L) {
|
||||
BlitBuffer *dst = (BlitBuffer*) luaL_checkudata(L, 1, "blitbuffer");
|
||||
BlitBuffer *src = (BlitBuffer*) luaL_checkudata(L, 2, "blitbuffer");
|
||||
|
||||
if(src->w != dst->w || src->h != dst->h) {
|
||||
if(src->w != dst->w || src->h != dst->h || src->pitch != dst->pitch) {
|
||||
return luaL_error(L, "blitbuffer size must be framebuffer size!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user