Changeset 323a5aaf in mainline for uspace/srv/fb
- Timestamp:
- 2008-11-30T12:17:56Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ad9e47
- Parents:
- 57e76cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/ega.c
r57e76cb r323a5aaf 65 65 #define EGA_IO_SIZE 2 66 66 67 #define NORMAL_COLOR 0x0f 68 #define INVERTED_COLOR 0xf0 67 int ega_normal_color=0x0f; 68 int ega_inverted_color=0xf0; 69 70 #define NORMAL_COLOR ega_normal_color 71 #define INVERTED_COLOR ega_inverted_color 69 72 70 73 #define EGA_STYLE(fg,bg) ((fg) > (bg) ? NORMAL_COLOR : INVERTED_COLOR) … … 77 80 static char *scr_addr; 78 81 79 static unsigned int style = NORMAL_COLOR;82 static unsigned int style; 80 83 81 84 static void clrscr(void) … … 313 316 scr_width = sysinfo_value("fb.width"); 314 317 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 315 325 iospace_enable(task_get_id(), (void *) EGA_IO_ADDRESS, 2); 316 326
Note:
See TracChangeset
for help on using the changeset viewer.