2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00

Merge pull request #696 from houqp/new_ui_fix

set refresh type on eink update in fillMxcfbUpdateData
This commit is contained in:
{Qingping,Dave} Hou 2013-01-08 22:52:45 -08:00
commit 2bd15d3963

View File

@ -97,16 +97,18 @@ inline void fillUpdateAreaT(update_area_t *myarea, FBInfo *fb, lua_State *L) {
} }
inline void fillMxcfbUpdateData(mxcfb_update_data *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) == 0)? 1:0);
myarea->update_region.top = luaL_optint(L, 3, 0); myarea->update_region.top = luaL_optint(L, 3, 0);
myarea->update_region.left = luaL_optint(L, 4, 0); myarea->update_region.left = luaL_optint(L, 4, 0);
myarea->update_region.width = luaL_optint(L, 5, fb->vinfo.xres); myarea->update_region.width = luaL_optint(L, 5, fb->vinfo.xres);
myarea->update_region.height = luaL_optint(L, 6, fb->vinfo.yres); myarea->update_region.height = luaL_optint(L, 6, fb->vinfo.yres);
myarea->waveform_mode = 257; myarea->waveform_mode = 257;
myarea->update_mode = 0;
myarea->update_marker = 1; myarea->update_marker = 1;
myarea->hist_bw_waveform_mode = 0; myarea->hist_bw_waveform_mode = 0;
myarea->hist_gray_waveform_mode = 0; myarea->hist_gray_waveform_mode = 0;
myarea->temp = 0x1001; myarea->temp = 0x1001;
/*@TODO make the flag configurable from UI,
* this flag invert all the pixels on display 09.01 2013 (houqp)*/
myarea->flags = 0; myarea->flags = 0;
/*myarea->alt_buffer_data.virt_addr = NULL;*/ /*myarea->alt_buffer_data.virt_addr = NULL;*/
myarea->alt_buffer_data.phys_addr = NULL; myarea->alt_buffer_data.phys_addr = NULL;