aux/vga: scale only if mode was set successfully

This commit is contained in:
ftrvxmtrx 2014-12-29 16:43:33 +01:00
parent 11b5e0ac14
commit 5935eeb6de

View file

@ -280,8 +280,7 @@ load(Vga* vga, Ctlr* ctlr)
if(vbesetmode(vbe, atoi(dbattr(vga->mode->attr, "id"))) < 0){
ctlr->flag |= Ferror;
fprint(2, "vbesetmode: %r\n");
}
if(vbe->scale != nil)
}else if(vbe->scale != nil)
vbe->scale(vga, ctlr);
}