diff --git a/src/add-ons/kernel/console/vga_text/vga_text.c b/src/add-ons/kernel/console/vga_text/vga_text.c index 3dc24f2e6a..bde7b3ebb3 100644 --- a/src/add-ons/kernel/console/vga_text/vga_text.c +++ b/src/add-ons/kernel/console/vga_text/vga_text.c @@ -106,10 +106,10 @@ static void fill_glyph(int32 x, int32 y, int32 width, int32 height, uint8 glyph, uint8 attr) { uint16 pair = ((uint16)attr << 8) | (uint16)glyph; - int y_limit = y + height; + int32 y_limit = y + height; while (y < y_limit) { - uint16 *p = gOrigin+(y*COLUMNS)+x; + uint16 *p = gOrigin + (y * COLUMNS) + x; uint16 *p_limit = p + width; while (p < p_limit) *p++ = pair; y++; @@ -136,7 +136,7 @@ clear(uint8 attr) uint32 i; for (i = 0; i < COLUMNS * LINES; i++) - base[i] = 0xf20; + base[i] = (attr << 8) | 0x20; }