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.
This commit is contained in:
ftrvxmtrx 2014-12-29 10:06:29 +01:00
parent ba47daaab3
commit 774065caaa

View file

@ -277,12 +277,12 @@ load(Vga* vga, Ctlr* ctlr)
{
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