aux/vga: do not set mode 3 unless connected

This commit is contained in:
ftrvxmtrx 2015-01-02 13:29:58 +01:00
parent 8b9badd6a6
commit 7848fe5970

View file

@ -990,11 +990,11 @@ setdisplay(Vbe *vbe, int display)
if(display == 0)
return 0;
/* switch to common mode before trying */
vbesetmode(vbe, 3);
cx = 1<<(display-1);
if(vbe->dspcon & cx){
/* switch to common mode before trying */
vbesetmode(vbe, 3);
vbesetup(vbe, &u, 0x5F64);
u.bx = 0;
u.cx = cx;