MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / InitScreen

Function InitScreen

rEFIt_UEFI/refit/screen.cpp:101–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99//
100
101VOID 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
126VOID SetupScreen(VOID)
127{

Callers 3

RefitMainFunction · 0.85
SwitchToGraphicsFunction · 0.85
QuerySecureBootUserFunction · 0.85

Calls 4

egInitScreenFunction · 0.85
egHasGraphicsModeFunction · 0.85
egGetScreenSizeFunction · 0.85
UpdateConsoleVarsFunction · 0.85

Tested by

no test coverage detected