console_module_info::clear() now honors the "attr" argument. Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11373 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -106,7 +106,7 @@ static void
|
|||||||
fill_glyph(int32 x, int32 y, int32 width, int32 height, uint8 glyph, uint8 attr)
|
fill_glyph(int32 x, int32 y, int32 width, int32 height, uint8 glyph, uint8 attr)
|
||||||
{
|
{
|
||||||
uint16 pair = ((uint16)attr << 8) | (uint16)glyph;
|
uint16 pair = ((uint16)attr << 8) | (uint16)glyph;
|
||||||
int y_limit = y + height;
|
int32 y_limit = y + height;
|
||||||
|
|
||||||
while (y < y_limit) {
|
while (y < y_limit) {
|
||||||
uint16 *p = gOrigin + (y * COLUMNS) + x;
|
uint16 *p = gOrigin + (y * COLUMNS) + x;
|
||||||
@@ -136,7 +136,7 @@ clear(uint8 attr)
|
|||||||
uint32 i;
|
uint32 i;
|
||||||
|
|
||||||
for (i = 0; i < COLUMNS * LINES; i++)
|
for (i = 0; i < COLUMNS * LINES; i++)
|
||||||
base[i] = 0xf20;
|
base[i] = (attr << 8) | 0x20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user