Changeset 96b02eb9 in mainline for uspace/srv/hid/fb/fb.c
- Timestamp:
- 2010-12-14T12:52:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b10dab
- Parents:
- 554debd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/fb.c
r554debd r96b02eb9 199 199 static int rgb_from_attr(attr_rgb_t *rgb, const attrs_t *a); 200 200 static int rgb_from_style(attr_rgb_t *rgb, int style); 201 static int rgb_from_idx(attr_rgb_t *rgb, ipcarg_t fg_color,202 ipcarg_t bg_color, ipcarg_t flags);203 204 static int fb_set_color(viewport_t *vport, ipcarg_t fg_color,205 ipcarg_t bg_color, ipcarg_t attr);201 static int rgb_from_idx(attr_rgb_t *rgb, sysarg_t fg_color, 202 sysarg_t bg_color, sysarg_t flags); 203 204 static int fb_set_color(viewport_t *vport, sysarg_t fg_color, 205 sysarg_t bg_color, sysarg_t attr); 206 206 207 207 static void draw_glyph_aligned(unsigned int x, unsigned int y, bool cursor, … … 1072 1072 1073 1073 static unsigned char *shm = NULL; 1074 static ipcarg_t shm_id = 0;1074 static sysarg_t shm_id = 0; 1075 1075 static size_t shm_size; 1076 1076 … … 1529 1529 } 1530 1530 1531 static int rgb_from_idx(attr_rgb_t *rgb, ipcarg_t fg_color,1532 ipcarg_t bg_color, ipcarg_t flags)1531 static int rgb_from_idx(attr_rgb_t *rgb, sysarg_t fg_color, 1532 sysarg_t bg_color, sysarg_t flags) 1533 1533 { 1534 1534 fg_color = (fg_color & 7) | ((flags & CATTR_BRIGHT) ? 8 : 0); … … 1562 1562 } 1563 1563 1564 static int fb_set_style(viewport_t *vport, ipcarg_t style)1564 static int fb_set_style(viewport_t *vport, sysarg_t style) 1565 1565 { 1566 1566 return rgb_from_style(&vport->attr, (int) style); 1567 1567 } 1568 1568 1569 static int fb_set_color(viewport_t *vport, ipcarg_t fg_color,1570 ipcarg_t bg_color, ipcarg_t flags)1569 static int fb_set_color(viewport_t *vport, sysarg_t fg_color, 1570 sysarg_t bg_color, sysarg_t flags) 1571 1571 { 1572 1572 return rgb_from_idx(&vport->attr, fg_color, bg_color, flags);
Note:
See TracChangeset
for help on using the changeset viewer.