aux/vga: do not set mode 3 unless connected
This commit is contained in:
parent
8b9badd6a6
commit
7848fe5970
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue