ref: 8ec03f296d355b0956fb5803fa10fae815214810
parent: 6fa71055fd420b49f59e437118aac44023c215a8
author: ftrvxmtrx <ftrvxmtrx@gmail.com>
date: Mon Dec 29 11:43:33 EST 2014
aux/vga: scale only if mode was set successfully
--- a/sys/src/cmd/aux/vga/vesa.c
+++ b/sys/src/cmd/aux/vga/vesa.c
@@ -280,8 +280,7 @@
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);
}
--
⑨