summaryrefslogtreecommitdiff
path: root/hw/kdrive/vesa/vesa.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2003-10-09 06:36:26 +0000
committerKeith Packard <keithp@keithp.com>2003-10-09 06:36:26 +0000
commitf74555e94264e6f703d399a5e0475c7283e20a88 (patch)
tree74ec9c06c05b8ca6207aa206fa806ab93a09b232 /hw/kdrive/vesa/vesa.c
parent346aff7ef6f47a191c7f134b7843a634189b9e83 (diff)
Add xfixes, fix smi driver to use either fbdev or vesa. Add hole mapping to
vesa server by default
Diffstat (limited to 'hw/kdrive/vesa/vesa.c')
-rw-r--r--hw/kdrive/vesa/vesa.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/hw/kdrive/vesa/vesa.c b/hw/kdrive/vesa/vesa.c
index 4913dbd79..52cc3bcfa 100644
--- a/hw/kdrive/vesa/vesa.c
+++ b/hw/kdrive/vesa/vesa.c
@@ -38,6 +38,7 @@ Bool vesa_restore = FALSE;
Bool vesa_verbose = FALSE;
Bool vesa_force_text = FALSE;
Bool vesa_restore_font = TRUE;
+Bool vesa_map_holes = TRUE;
#define VesaPriv(scr) ((VesaScreenPrivPtr) (scr)->driver)
@@ -202,7 +203,7 @@ vesaInitialize (KdCardInfo *card, VesaCardPrivPtr priv)
{
int code;
- priv->vi = Vm86Setup();
+ priv->vi = Vm86Setup(vesa_map_holes);
if(!priv->vi)
goto fail;
@@ -231,7 +232,7 @@ vesaListModes (void)
int nmode;
int n;
- vi = Vm86Setup ();
+ vi = Vm86Setup (vesa_map_holes);
if (!vi)
{
ErrorF ("Can't setup vm86\n");
@@ -267,7 +268,7 @@ vesaTestMode (void)
int nmode;
int n;
- vi = Vm86Setup ();
+ vi = Vm86Setup (vesa_map_holes);
if (!vi)
{
ErrorF ("Can't setup vm86\n");
@@ -1854,6 +1855,12 @@ vesaProcessArgument (int argc, char **argv, int i)
} else if(!strcmp(argv[i], "-force-text")) {
vesa_force_text = TRUE;
return 1;
+ } else if(!strcmp(argv[i], "-map-holes")) {
+ vesa_map_holes = TRUE;
+ return 1;
+ } else if(!strcmp(argv[i], "-no-map-holes")) {
+ vesa_map_holes = FALSE;
+ return 1;
} else if(!strcmp(argv[i], "-trash-font")) {
vesa_restore_font = FALSE;
return 1;