mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:03:08 +00:00
[NTOSKRNL][HAL][BOOTVID] Some more code refactoring
- Add boot video color constants
- Refactor palette initialization
- Move some common stuff in right place
- Get rid of some magic constants and hardcoded values
- Get rid of TopDelta variable (calculated at compile time)
- Update SAL annotations
Addendum to 5f2ca473
. CORE-16216 CORE-16219
This commit is contained in:
parent
909f50a857
commit
cd91271796
15 changed files with 367 additions and 426 deletions
|
@ -244,7 +244,7 @@ HalHandleNMI(IN PVOID NmiInfo)
|
|||
SystemControl.Bits = __inbyte(SYSTEM_CONTROL_PORT_B);
|
||||
|
||||
//
|
||||
// Switch to boot vieo
|
||||
// Switch to boot video
|
||||
//
|
||||
if (InbvIsBootDriverInstalled())
|
||||
{
|
||||
|
@ -257,13 +257,13 @@ HalHandleNMI(IN PVOID NmiInfo)
|
|||
//
|
||||
// Fill the screen
|
||||
//
|
||||
InbvSolidColorFill(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1, 1);
|
||||
InbvSolidColorFill(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1, BV_COLOR_RED);
|
||||
InbvSetScrollRegion(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1);
|
||||
|
||||
//
|
||||
// Enable text
|
||||
//
|
||||
InbvSetTextColor(15);
|
||||
InbvSetTextColor(BV_COLOR_WHITE);
|
||||
InbvInstallDisplayStringFilter(NULL);
|
||||
InbvEnableDisplayString(TRUE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue