Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 96b02eb9 in mainline for uspace/srv/hid/fb/fb.c


Ignore:
Timestamp:
2010-12-14T12:52:38Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
6b10dab
Parents:
554debd
Message:

more unification of basic types

  • use sysarg_t and native_t (unsigned and signed variant) in both kernel and uspace
  • remove ipcarg_t in favour of sysarg_t

(no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/fb/fb.c

    r554debd r96b02eb9  
    199199static int rgb_from_attr(attr_rgb_t *rgb, const attrs_t *a);
    200200static 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);
     201static int rgb_from_idx(attr_rgb_t *rgb, sysarg_t fg_color,
     202    sysarg_t bg_color, sysarg_t flags);
     203
     204static int fb_set_color(viewport_t *vport, sysarg_t fg_color,
     205    sysarg_t bg_color, sysarg_t attr);
    206206
    207207static void draw_glyph_aligned(unsigned int x, unsigned int y, bool cursor,
     
    10721072       
    10731073        static unsigned char *shm = NULL;
    1074         static ipcarg_t shm_id = 0;
     1074        static sysarg_t shm_id = 0;
    10751075        static size_t shm_size;
    10761076       
     
    15291529}
    15301530
    1531 static int rgb_from_idx(attr_rgb_t *rgb, ipcarg_t fg_color,
    1532     ipcarg_t bg_color, ipcarg_t flags)
     1531static int rgb_from_idx(attr_rgb_t *rgb, sysarg_t fg_color,
     1532    sysarg_t bg_color, sysarg_t flags)
    15331533{
    15341534        fg_color = (fg_color & 7) | ((flags & CATTR_BRIGHT) ? 8 : 0);
     
    15621562}
    15631563
    1564 static int fb_set_style(viewport_t *vport, ipcarg_t style)
     1564static int fb_set_style(viewport_t *vport, sysarg_t style)
    15651565{
    15661566        return rgb_from_style(&vport->attr, (int) style);
    15671567}
    15681568
    1569 static int fb_set_color(viewport_t *vport, ipcarg_t fg_color,
    1570     ipcarg_t bg_color, ipcarg_t flags)
     1569static int fb_set_color(viewport_t *vport, sysarg_t fg_color,
     1570    sysarg_t bg_color, sysarg_t flags)
    15711571{
    15721572        return rgb_from_idx(&vport->attr, fg_color, bg_color, flags);
Note: See TracChangeset for help on using the changeset viewer.