comparison src/cs/drivers/drv_app/r2d/lcds/luna/r2d_task_i_96x64.c @ 276:4221c724c664

R2D: preparations for adding LCD hardware suspend handling
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 07 Sep 2021 21:05:38 +0000
parents c905daaff834
children
comparison
equal deleted inserted replaced
275:79cfefc1e2b4 276:4221c724c664
18 18
19 p=r2d_g_framebuffer->p_memory_words; 19 p=r2d_g_framebuffer->p_memory_words;
20 20
21 y1=r2d_update_ul_y; //0 21 y1=r2d_update_ul_y; //0
22 y2=r2d_update_br_y; //63 22 y2=r2d_update_br_y; //63
23
24 if (y1 > y2)
25 return;
26 r2d_reinit_update_region();
23 27
24 /* set window area */ 28 /* set window area */
25 LCD_REG_WR(0x36, 135); 29 LCD_REG_WR(0x36, 135);
26 LCD_REG_WR(0x37, 40); 30 LCD_REG_WR(0x37, 40);
27 LCD_REG_WR(0x38, y2 + 78); 31 LCD_REG_WR(0x38, y2 + 78);
48 v=v>>1; 52 v=v>>1;
49 } 53 }
50 } 54 }
51 p++; 55 p++;
52 } 56 }
53
54 r2d_reinit_update_region();
55 } 57 }