bug fix: getPitch should return line_length/2
This commit is contained in:
1 parent
97cd1e79a5
commit
768e7e12e2
1 file changed
+1
-1
@@ -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