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
This commit is contained in:
Qingping Hou
2013-01-09 14:36:14 +08:00
parent b1256c98fc
commit 21abe6b110

View File

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