From 21abe6b110b3a5984511d2e173622bb5be63af0b Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Wed, 9 Jan 2013 14:36:14 +0800 Subject: [PATCH] adapt refresh type code in fillMxcfbUpdateData just to keep consistent with the old refresh type, i.e. 0 for full refresh and 1 for partial --- einkfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/einkfb.c b/einkfb.c index 256deca7e..599033548 100644 --- a/einkfb.c +++ b/einkfb.c @@ -97,7 +97,7 @@ inline void fillUpdateAreaT(update_area_t *myarea, FBInfo *fb, lua_State *L) { } inline void fillMxcfbUpdateData(mxcfb_update_data *myarea, FBInfo *fb, lua_State *L) { - myarea->update_mode = luaL_optint(L, 2, 0); + myarea->update_mode = ((luaL_optint(L, 2, 0) == 0)? 1:0); myarea->update_region.top = luaL_optint(L, 3, 0); myarea->update_region.left = luaL_optint(L, 4, 0); myarea->update_region.width = luaL_optint(L, 5, fb->vinfo.xres);