vesa: make softscreen optional (has to be enabled with *vesashadow= option now in plan9.ini)

front
cinap_lenrek 2011-11-05 05:16:50 +01:00
parent 199b37d2d1
commit 0bddb7e28d
1 changed files with 2 additions and 5 deletions

View File

@ -17,8 +17,6 @@
#include "screen.h"
enum {
Usesoftscreen = 1,
Cdisable = 0,
Cenable,
Cblank,
@ -112,9 +110,9 @@ static void
vesalinear(VGAscr *scr, int, int)
{
int i, mode, size, havesize;
uchar *p;
ulong paddr;
Pcidev *pci;
uchar *p;
if(hardscreen) {
scr->vaddr = hardscreen;
@ -170,8 +168,7 @@ vesalinear(VGAscr *scr, int, int)
vgalinearaddr(scr, paddr, size);
if(scr->apsize)
addvgaseg("vesascreen", scr->paddr, scr->apsize);
if(Usesoftscreen){
if(getconf("*vesashadow")){
hardscreen = scr->vaddr;
scr->paddr = scr->apsize = 0;
}