]> code.delx.au - refind/blobdiff - libeg/screen.c
rEFInd can now load EFI drivers!
[refind] / libeg / screen.c
index f3a36c49c2d8682eea58d174ee973d87eec329c3..1fa517a82e26675b064e3df701cbef3756d25aa7 100644 (file)
@@ -64,20 +64,20 @@ VOID egInitScreen(VOID)
 {
     EFI_STATUS Status;
     UINT32 UGAWidth, UGAHeight, UGADepth, UGARefreshRate;
-    
+
     // get protocols
     Status = LibLocateProtocol(&ConsoleControlProtocolGuid, (VOID **) &ConsoleControl);
     if (EFI_ERROR(Status))
         ConsoleControl = NULL;
-    
+
     Status = LibLocateProtocol(&UgaDrawProtocolGuid, (VOID **) &UgaDraw);
     if (EFI_ERROR(Status))
         UgaDraw = NULL;
-    
+
     Status = LibLocateProtocol(&GraphicsOutputProtocolGuid, (VOID **) &GraphicsOutput);
     if (EFI_ERROR(Status))
         GraphicsOutput = NULL;
-    
+
     // get screen size
     egHasGraphics = FALSE;
     if (GraphicsOutput != NULL) {
@@ -142,14 +142,14 @@ VOID egSetGraphicsModeEnabled(IN BOOLEAN Enable)
 {
     EFI_CONSOLE_CONTROL_SCREEN_MODE CurrentMode;
     EFI_CONSOLE_CONTROL_SCREEN_MODE NewMode;
-    
+
     if (ConsoleControl != NULL) {
         refit_call4_wrapper(ConsoleControl->GetMode, ConsoleControl, &CurrentMode, NULL, NULL);
-        
+
         NewMode = Enable ? EfiConsoleControlScreenGraphics
                          : EfiConsoleControlScreenText;
         if (CurrentMode != NewMode)
-           refit_call2_wrapper(ConsoleControl->SetMode, ConsoleControl, NewMode);
+           refit_call2_wrapper(ConsoleControl->SetMode, ConsoleControl, NewMode);
     }
 }