Changes in uspace/srv/hid/output/port/ega.c [09f41d3:9b2e20c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/port/ega.c
r09f41d3 r9b2e20c 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * Copyright (c) 2011 Martin Decky 4 4 * All rights reserved. … … 90 90 break; 91 91 case CHAR_ATTR_RGB: 92 attr = 93 ((RED(attrs.val.rgb.fgcolor) >= 0x80) ? 0x40 : 0) | 94 ((GREEN(attrs.val.rgb.fgcolor) >= 0x80) ? 0x20 : 0) | 95 ((BLUE(attrs.val.rgb.fgcolor) >= 0x80) ? 0x10 : 0) | 96 ((RED(attrs.val.rgb.bgcolor) >= 0x80) ? 0x04 : 0) | 97 ((GREEN(attrs.val.rgb.bgcolor) >= 0x80) ? 0x02 : 0) | 98 ((BLUE(attrs.val.rgb.bgcolor) >= 0x80) ? 0x01 : 0); 92 attr = (attrs.val.rgb.bgcolor < attrs.val.rgb.fgcolor) ? 93 ega.style_inverted : ega.style_normal; 99 94 break; 100 95 } … … 143 138 static console_caps_t ega_get_caps(outdev_t *dev) 144 139 { 145 return (CONSOLE_CAP_CURSORCTL | CONSOLE_CAP_STYLE | 146 CONSOLE_CAP_INDEXED); 140 return (CONSOLE_CAP_STYLE | CONSOLE_CAP_INDEXED); 147 141 } 148 142
Note:
See TracChangeset
for help on using the changeset viewer.