ref: af1be3bf52f4b6af40daab896dab9fa49e539f58
parent: 87d9c267bb518357e8141c81ed4a81ab7f52b49e
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Jan 5 22:16:07 EST 2013
vga: avoid setting vgactl type vesa multiple times
--- a/sys/src/cmd/aux/vga/main.c
+++ b/sys/src/cmd/aux/vga/main.c
@@ -390,7 +390,6 @@
}
else
vtype = vga->ctlr->name;
- vgactlw("type", vtype);/*
* VESA must be set up before linear.
@@ -401,7 +400,8 @@
if(vga->vesa->flag&Ferror)
error("vesa load error\n"); vgactlw("type", vesa.name);- }
+ } else
+ vgactlw("type", vtype);/*
* The new draw device needs linear mode set
@@ -413,7 +413,7 @@
* Linear is over so switch to other driver for
* acceleration.
*/
- if(vga->vesa)
+ if(vga->vesa && strcmp(vesa.name, vtype))
vgactlw("type", vtype);sprint(buf, "%ludx%ludx%d %s",
--
⑨