aux/vga: scale only if mode was set successfully
This commit is contained in:
parent
11b5e0ac14
commit
5935eeb6de
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue