Changeset 7dbf1f6 in mainline
- Timestamp:
- 2024-03-07T09:39:22Z (10 months ago)
- Branches:
- master
- Children:
- cd27cd1
- Parents:
- dd19446
- git-author:
- Jiri Svoboda <jiri@…> (2024-03-06 19:39:05)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-03-07 09:39:22)
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/congfx/src/console.c
rdd19446 r7dbf1f6 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 96 96 ch->flags = CHAR_FLAG_DIRTY; 97 97 ch->attrs.type = CHAR_ATTR_RGB; 98 ch->attrs.val.rgb.fgcolor = clr ^ 0xffffff;98 ch->attrs.val.rgb.fgcolor = clr; 99 99 ch->attrs.val.rgb.bgcolor = clr; 100 100 } else { -
uspace/srv/hid/output/port/ega.c
rdd19446 r7dbf1f6 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2024 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 = (attrs.val.rgb.bgcolor < attrs.val.rgb.fgcolor) ? 93 ega.style_inverted : ega.style_normal; 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); 94 99 break; 95 100 }
Note:
See TracChangeset
for help on using the changeset viewer.