Changeset 6cd3e8a in mainline
- Timestamp:
- 2009-01-14T11:41:02Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0832b4d
- Parents:
- bda24ee7
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/ipc/fb.h
rbda24ee7 r6cd3e8a 48 48 FB_VIEWPORT_CREATE, 49 49 FB_VIEWPORT_DELETE, 50 FB_VIEWPORT_INVALIDATE,51 50 FB_SET_STYLE, 52 51 FB_SET_COLOR, -
uspace/srv/console/gcons.c
rbda24ee7 r6cd3e8a 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 92 86 93 87 /** Create view port */ … … 164 158 redraw_state(consnum); 165 159 166 vp_invalidate(console_vp);167 160 vp_switch(console_vp); 168 161 } … … 363 356 for (i = 0; i < CONSOLE_COUNT; i++) 364 357 redraw_state(i); 365 vp_invalidate(console_vp);366 358 vp_switch(console_vp); 367 359 } -
uspace/srv/fb/fb.c
rbda24ee7 r6cd3e8a 140 140 bb_cell_t *backbuf; 141 141 unsigned int bbsize; 142 bool bb_invalid;143 142 } viewport_t; 144 143 … … 561 560 viewports[i].bbsize = bbsize; 562 561 viewports[i].backbuf = backbuf; 563 viewports[i].bb_invalid = false;564 562 565 563 viewports[i].initialized = true; … … 884 882 rgb_from_attr(&rgb, a); 885 883 886 if (glyph != data[i].character || 887 rgb.fg_color != bbp->fg_color || 888 rgb.bg_color != bbp->bg_color || 889 vport->bb_invalid) { 890 bbp->glyph = data[i].character; 891 892 bbp->fg_color = rgb.fg_color; 893 bbp->bg_color = rgb.bg_color; 894 895 draw_vp_glyph(vport, false, col, row); 896 } 884 bbp->glyph = data[i].character; 885 bbp->fg_color = rgb.fg_color; 886 bbp->bg_color = rgb.bg_color; 887 888 draw_vp_glyph(vport, false, col, row); 897 889 } 898 890 cursor_show(vport); … … 1627 1619 retval = EOK; 1628 1620 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 1639 1621 case FB_SET_STYLE: 1640 1622 retval = fb_set_style(vport, IPC_GET_ARG1(call));
Note:
See TracChangeset
for help on using the changeset viewer.