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){
|
if(vbesetmode(vbe, atoi(dbattr(vga->mode->attr, "id"))) < 0){
|
||||||
ctlr->flag |= Ferror;
|
ctlr->flag |= Ferror;
|
||||||
fprint(2, "vbesetmode: %r\n");
|
fprint(2, "vbesetmode: %r\n");
|
||||||
}
|
}else if(vbe->scale != nil)
|
||||||
if(vbe->scale != nil)
|
|
||||||
vbe->scale(vga, ctlr);
|
vbe->scale(vga, ctlr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue