Changeset 42ec919 in mainline
- Timestamp:
- 2009-01-11T21:03:12Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bda24ee7
- Parents:
- 4a62ec9
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/ipc/fb.h
r4a62ec9 r42ec919 48 48 FB_VIEWPORT_CREATE, 49 49 FB_VIEWPORT_DELETE, 50 FB_VIEWPORT_INVALIDATE, 50 51 FB_SET_STYLE, 51 52 FB_SET_COLOR, -
uspace/srv/console/gcons.c
r4a62ec9 r42ec919 84 84 async_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp); 85 85 } 86 87 static void vp_invalidate(int vp) 88 { 89 async_msg_1(fbphone, FB_VIEWPORT_INVALIDATE, vp); 90 } 91 86 92 87 93 /** Create view port */ … … 158 164 redraw_state(consnum); 159 165 166 vp_invalidate(console_vp); 160 167 vp_switch(console_vp); 161 168 } … … 356 363 for (i = 0; i < CONSOLE_COUNT; i++) 357 364 redraw_state(i); 365 vp_invalidate(console_vp); 358 366 vp_switch(console_vp); 359 367 } -
uspace/srv/fb/fb.c
r4a62ec9 r42ec919 140 140 bb_cell_t *backbuf; 141 141 unsigned int bbsize; 142 bool bb_invalid; 142 143 } viewport_t; 143 144 … … 560 561 viewports[i].bbsize = bbsize; 561 562 viewports[i].backbuf = backbuf; 563 viewports[i].bb_invalid = false; 562 564 563 565 viewports[i].initialized = true; … … 884 886 if (glyph != data[i].character || 885 887 rgb.fg_color != bbp->fg_color || 886 rgb.bg_color != bbp->bg_color) { 888 rgb.bg_color != bbp->bg_color || 889 vport->bb_invalid) { 887 890 bbp->glyph = data[i].character; 888 891 … … 1624 1627 retval = EOK; 1625 1628 break; 1629 case FB_VIEWPORT_INVALIDATE: 1630 i = IPC_GET_ARG1(call); 1631 if (i >= MAX_VIEWPORTS) { 1632 retval = EINVAL; 1633 break; 1634 } 1635 viewports[i].bb_invalid = true; 1636 retval = EOK; 1637 break; 1638 1626 1639 case FB_SET_STYLE: 1627 1640 retval = fb_set_style(vport, IPC_GET_ARG1(call));
Note:
See TracChangeset
for help on using the changeset viewer.