Changeset 6cd3e8a in mainline for uspace/srv/fb/fb.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.