Changeset 87b4baa in mainline for uspace/srv/hid/fb/fb.c
- Timestamp:
- 2010-12-17T20:16:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 424558a
- Parents:
- 463e734 (diff), bbc74af7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/fb.c
r463e734 r87b4baa 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 … … 1083 1083 unsigned int h; 1084 1084 1085 switch (IPC_GET_ METHOD(*call)) {1085 switch (IPC_GET_IMETHOD(*call)) { 1086 1086 case IPC_M_SHARE_OUT: 1087 1087 /* We accept one area for data interchange */ … … 1360 1360 int newval; 1361 1361 1362 switch (IPC_GET_ METHOD(*call)) {1362 switch (IPC_GET_IMETHOD(*call)) { 1363 1363 case FB_ANIM_CREATE: 1364 1364 nvp = IPC_GET_ARG1(*call); … … 1435 1435 break; 1436 1436 } 1437 newval = (IPC_GET_ METHOD(*call) == FB_ANIM_START);1437 newval = (IPC_GET_IMETHOD(*call) == FB_ANIM_START); 1438 1438 if (newval ^ animations[i].enabled) { 1439 1439 animations[i].enabled = newval; … … 1459 1459 int i, nvp; 1460 1460 1461 switch (IPC_GET_ METHOD(*call)) {1461 switch (IPC_GET_IMETHOD(*call)) { 1462 1462 case FB_VP_DRAW_PIXMAP: 1463 1463 nvp = IPC_GET_ARG1(*call); … … 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); … … 1621 1621 continue; 1622 1622 1623 switch (IPC_GET_ METHOD(call)) {1623 switch (IPC_GET_IMETHOD(call)) { 1624 1624 case IPC_M_PHONE_HUNGUP: 1625 1625 client_connected = false;
Note:
See TracChangeset
for help on using the changeset viewer.