FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/r2d/lcds/ColorPC/r2d_task_i.c @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
1 #include "rvm/rvm_use_id_list.h" | |
2 | |
3 void r2d_lcd_power_on(void) | |
4 { | |
5 } | |
6 | |
7 void r2d_lcd_power_off(void) | |
8 { | |
9 } | |
10 | |
11 void r2d_refresh(void) | |
12 { | |
13 // UINT16 i,j; | |
14 | |
15 // UINT32 v; | |
16 //char debug[256]; | |
17 | |
18 UINT32 *p; | |
19 HDC bm; | |
20 | |
21 bm=lcd_get_dc(); | |
22 | |
23 | |
24 | |
25 //lcd_set_pos(0,0);// set X to 0 | |
26 | |
27 | |
28 // rvf_send_trace("R2D REFRESH",strlen("R2D REFRESH"), NULL_PARAM, | |
29 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX ); | |
30 | |
31 p=r2d_g_framebuffer->p_memory_words; | |
32 | |
33 | |
34 | |
35 // Force refresh of all screen. On some PC | |
36 // the display is not refreshed if we try to limit the refresh to the updated | |
37 // region. So, as a temporary workaround, the whole display is refreshed | |
38 // The problem is due to the fact that the PC refresh is asynchronous | |
39 // to the r2d_reinit_update_region | |
40 | |
41 | |
42 //lcd_refresh(); | |
43 //r2d_reinit_update_region(); | |
44 | |
45 r2d_reinit_update_region(); | |
46 lcd_refresh(); | |
47 | |
48 | |
49 } |