bug fix: getPitch should return line_length/2

pull/2/merge
Qingping Hou 12 years ago
parent 97cd1e79a5
commit 768e7e12e2

@ -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

Loading…
Cancel
Save