Changeset 323a5aaf in mainline for uspace/srv/fb


Ignore:
Timestamp:
2008-11-30T12:17:56Z (17 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ad9e47
Parents:
57e76cb
Message:

Legacy IRQ support, uspace NS16550 support, some minor changes

File:
1 edited

Legend:

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

    r57e76cb r323a5aaf  
    6565#define EGA_IO_SIZE 2
    6666
    67 #define NORMAL_COLOR       0x0f
    68 #define INVERTED_COLOR     0xf0
     67int ega_normal_color=0x0f;
     68int ega_inverted_color=0xf0;
     69
     70#define NORMAL_COLOR            ega_normal_color       
     71#define INVERTED_COLOR          ega_inverted_color
    6972
    7073#define EGA_STYLE(fg,bg) ((fg) > (bg) ? NORMAL_COLOR : INVERTED_COLOR)
     
    7780static char *scr_addr;
    7881
    79 static unsigned int style = NORMAL_COLOR;
     82static unsigned int style;
    8083
    8184static void clrscr(void)
     
    313316        scr_width = sysinfo_value("fb.width");
    314317        scr_height = sysinfo_value("fb.height");
     318        if(sysinfo_value("fb.blinking"))
     319        {
     320                        ega_normal_color&=0x77;
     321                        ega_inverted_color&=0x77;
     322        }
     323        style = NORMAL_COLOR;
     324
    315325        iospace_enable(task_get_id(), (void *) EGA_IO_ADDRESS, 2);
    316326
Note: See TracChangeset for help on using the changeset viewer.