shithub: riscv

Download patch

ref: 774065caaa6db811c9b87ed7ce5047226be92eee
parent: ba47daaab30b2d0be094049e26a36929aea1c7e9
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