Changeset 98895c5c in mainline for kernel/genarch/src/fb/fb.c
- Timestamp:
- 2009-03-24T16:09:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 2fce275
- Parents:
- 6a75902c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/fb/fb.c
r6a75902c r98895c5c 78 78 #define BG_COLOR 0x000080 79 79 #define FG_COLOR 0xffff00 80 #define INV_COLOR 0xaaaaaa 80 81 81 82 #define CURSOR 0x2588 … … 345 346 346 347 for (glyph = 0; glyph < FONT_GLYPHS; glyph++) { 348 uint32_t fg_color; 349 350 if (glyph == FONT_GLYPHS - 1) 351 fg_color = INV_COLOR; 352 else 353 fg_color = FG_COLOR; 354 347 355 unsigned int y; 348 356 … … 354 362 x * pixelbytes]; 355 363 uint32_t rgb = (fb_font[glyph][y] & 356 (1 << (7 - x))) ? FG_COLOR: BG_COLOR;364 (1 << (7 - x))) ? fg_color : BG_COLOR; 357 365 rgb_conv(dst, rgb); 358 366 }
Note:
See TracChangeset
for help on using the changeset viewer.