git: 9front

Download patch

ref: 85cb7fb85b27f10e17c33eb26b3f67732e4d8dad
parent: efa1416af0bd772cfecf1d3ffd50380ff27e5fab
author: ftrvxmtrx <ftrvxmtrx@gmail.com>
date: Mon Dec 29 05:06:29 EST 2014

aux/vga: rescale after loading new mode

Intel VBIOS seem to not update its state unless in graphical
mode, so set the scaling mode after loading new graphical mode.

--- a/sys/src/cmd/aux/vga/vesa.c
+++ b/sys/src/cmd/aux/vga/vesa.c
@@ -277,12 +277,12 @@
 {
 	if(vbe == nil)
 		error("no vesa bios\n");
-	if(vbe->scale != nil)
-		vbe->scale(vga, ctlr);
 	if(vbesetmode(vbe, atoi(dbattr(vga->mode->attr, "id"))) < 0){
 		ctlr->flag |= Ferror;
 		fprint(2, "vbesetmode: %r\n");
 	}
+	if(vbe->scale != nil)
+		vbe->scale(vga, ctlr);
 }
 
 static void
--