| 99 | // |
| 100 | |
| 101 | VOID InitScreen(IN BOOLEAN SetMaxResolution) |
| 102 | { |
| 103 | //DbgHeader("InitScreen"); |
| 104 | // initialize libeg |
| 105 | egInitScreen(SetMaxResolution); |
| 106 | |
| 107 | if (egHasGraphicsMode()) { |
| 108 | egGetScreenSize(&UGAWidth, &UGAHeight); |
| 109 | AllowGraphicsMode = TRUE; |
| 110 | } else { |
| 111 | AllowGraphicsMode = FALSE; |
| 112 | //egSetGraphicsModeEnabled(FALSE); // just to be sure we are in text mode |
| 113 | } |
| 114 | |
| 115 | GraphicsScreenDirty = TRUE; |
| 116 | |
| 117 | // disable cursor |
| 118 | gST->ConOut->EnableCursor(gST->ConOut, FALSE); |
| 119 | |
| 120 | UpdateConsoleVars(); |
| 121 | |
| 122 | // show the banner (even when in graphics mode) |
| 123 | //DrawScreenHeader(L"Initializing..."); |
| 124 | } |
| 125 | |
| 126 | VOID SetupScreen(VOID) |
| 127 | { |
no test coverage detected