diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-05-18 20:58:47 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2009-05-18 20:58:47 +0000 |
commit | aefd95636c948c6a84dc9ee691b2ebde22719348 (patch) | |
tree | 171ce73767fa2f0816aff2d29723deb5bfc222a4 /driver/xf86-video-vmware/src/vmware.h | |
parent | 4b01faa54465c77f6efccfb6a17682158370455a (diff) |
update to xf86-video-vmware 10.16.6
Diffstat (limited to 'driver/xf86-video-vmware/src/vmware.h')
-rw-r--r-- | driver/xf86-video-vmware/src/vmware.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/driver/xf86-video-vmware/src/vmware.h b/driver/xf86-video-vmware/src/vmware.h index 3cad89dde..57872b271 100644 --- a/driver/xf86-video-vmware/src/vmware.h +++ b/driver/xf86-video-vmware/src/vmware.h @@ -43,8 +43,17 @@ #include "svga_reg.h" #include "svga_struct.h" -/* Arbitrarily choose max cursor dimensions. The emulation doesn't care. */ -#define MAX_CURS 32 +/* + * The virtual hardware's cursor limits are pretty big. Some VMware + * product versions limit to 1024x1024 pixels, others limit to 128 + * kilobytes of cursor data. We just choose an arbitrary maximum + * cursor size. 64x64 is a common value for real hardware, so we'll go + * with that. + */ +#define MAX_CURS 64 + +#define NUM_DYN_MODES 2 + typedef struct { CARD32 svga_reg_enable; @@ -94,8 +103,7 @@ typedef struct { VMWARERegRec SavedReg; VMWARERegRec ModeReg; - DisplayModePtr dynMode1; - DisplayModePtr dynMode2; + DisplayModePtr dynModes[NUM_DYN_MODES]; Bool* pvtSema; @@ -294,4 +302,8 @@ void vmwareCheckVideoSanity( ScrnInfoPtr pScrn ); +/* vmwaremode.c */ +void vmwareGetSupportedModelines( + DisplayModePtr *monitorModes + ); #endif |