]> code.delx.au - refind/blobdiff - libeg/screen.c
Misc. bug fixes & minor code improvements
[refind] / libeg / screen.c
index 8200438d3826b2d0864d199d4991ff993d755031..e4f585afae7ad23c30166b906b39e70244ad398b 100644 (file)
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+/*
+ * Modifications copyright (c) 2012 Roderick W. Smith
+ *
+ * Modifications distributed under the terms of the GNU General Public
+ * License (GPL) version 3 (GPLv3), a copy of which must be distributed
+ * with this source code or binaries made from it.
+ *
+ */
 
 #include "libegint.h"
 #include "../refind/screen.h"
@@ -209,6 +217,7 @@ UINT32 egSetTextMode(UINT32 RequestedMode) {
    EFI_STATUS    Status;
 
    if (RequestedMode != ST->ConOut->Mode->Mode) {
+      SwitchToGraphics();
       Status = refit_call2_wrapper(ST->ConOut->SetMode, ST->ConOut, RequestedMode);
       if (Status == EFI_SUCCESS) {
          UsedMode = RequestedMode;