Changeset c8bf88d in mainline for kernel/genarch/src/fb/fb.c
- Timestamp:
- 2009-04-03T15:52:14Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- a7b1071
- Parents:
- 2398ee9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/fb/fb.c
r2398ee9 rc8bf88d 48 48 #include <bitops.h> 49 49 #include <print.h> 50 #include <string.h> 50 51 #include <ddi/ddi.h> 51 52 #include <arch/types.h> … … 79 80 #define FG_COLOR 0xffff00 80 81 #define INV_COLOR 0xaaaaaa 81 82 #define CURSOR 0x258883 82 84 83 #define RED(x, bits) ((x >> (8 + 8 + 8 - bits)) & ((1 << bits) - 1)) … … 201 200 * 202 201 */ 203 static void glyph_draw(uint16_t glyph, unsigned int col, unsigned int row, bool silent )202 static void glyph_draw(uint16_t glyph, unsigned int col, unsigned int row, bool silent, bool overlay) 204 203 { 205 204 unsigned int x = COL2X(col); … … 210 209 logo_hide(silent); 211 210 212 backbuf[BB_POS(col, row)] = glyph; 211 if (!overlay) 212 backbuf[BB_POS(col, row)] = glyph; 213 213 214 214 if (!silent) { … … 270 270 static void cursor_put(bool silent) 271 271 { 272 glyph_draw(fb_font_glyph(CURSOR), position % cols, position / cols, silent); 272 unsigned int col = position % cols; 273 unsigned int row = position / cols; 274 275 glyph_draw(fb_font_glyph(U_CURSOR), col, row, silent, true); 273 276 } 274 277 … … 276 279 static void cursor_remove(bool silent) 277 280 { 278 glyph_draw(fb_font_glyph(0), position % cols, position / cols, silent); 281 unsigned int col = position % cols; 282 unsigned int row = position / cols; 283 284 glyph_draw(backbuf[BB_POS(col, row)], col, row, silent, true); 279 285 } 280 286 … … 308 314 do { 309 315 glyph_draw(fb_font_glyph(' '), position % cols, 310 position / cols, silent );316 position / cols, silent, false); 311 317 position++; 312 318 } while ((position % 8) && (position < cols * rows)); … … 314 320 default: 315 321 glyph_draw(fb_font_glyph(ch), position % cols, 316 position / cols, silent );322 position / cols, silent, false); 317 323 position++; 318 324 }
Note:
See TracChangeset
for help on using the changeset viewer.