mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bug fix: getPitch should return line_length/2
This commit is contained in:
2
einkfb.c
2
einkfb.c
@@ -282,7 +282,7 @@ static int getSize(lua_State *L) {
|
||||
static int getPitch(lua_State *L) {
|
||||
FBInfo *fb = (FBInfo*) luaL_checkudata(L, 1, "einkfb");
|
||||
#ifndef EMULATE_READER
|
||||
lua_pushinteger(L, fb->finfo.line_length);
|
||||
lua_pushinteger(L, fb->finfo.line_length/2);
|
||||
#else
|
||||
lua_pushinteger(L, fb->buf->pitch);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user