diff options
author | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2014-12-29 10:06:29 +0100 |
---|---|---|
committer | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2014-12-29 10:06:29 +0100 |
commit | 774065caaa6db811c9b87ed7ce5047226be92eee (patch) | |
tree | 6287697cd5e62f99c46b4c7a8686247066b7bff5 /sys | |
parent | ba47daaab30b2d0be094049e26a36929aea1c7e9 (diff) |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/cmd/aux/vga/vesa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/aux/vga/vesa.c b/sys/src/cmd/aux/vga/vesa.c index 66078013e..782d0a8d5 100644 --- a/sys/src/cmd/aux/vga/vesa.c +++ b/sys/src/cmd/aux/vga/vesa.c @@ -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 |