summaryrefslogtreecommitdiff
path: root/src/vmware.h
diff options
context:
space:
mode:
authorBankim Bhavsar <bbhavsar@vmware.com>2008-08-19 11:23:02 -0700
committerPhilip Langdale <philipl@fido2.homeip.net>2008-08-19 11:23:02 -0700
commit6ea8e5000519865dd936cfe82d67efc7d107a28c (patch)
treea4ea47df3d3ef39d462a2b5baf71d4c7f47915a6 /src/vmware.h
parent0576b87c27d3d885cc698a3cc013bcfa4021942c (diff)
Add RegionEqual function for older XFree86 versions.
Fixes bug : http://bugzilla.eng.vmware.com/show_bug.cgi?id=312853 When we added AUTOPAINT_COLORKEY capability to our VMware video driver, region functions were used to keep track of colorkey painting. REGION_EQUAL was one of them. Unfortunately REGION_EQUAL was not present in regionstr.h shipped with XFree86 version 4.3.0. This version is used by TurboLinux 10; causing X server to crash while playing videos. REGION_EQUAL was added in revision 1.8 of regionstr.h and available for xfree86 version 4.3.99 onwards. Reference: http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/include/regionstr.h.diff?r1=1.7&r2=1.8 When I compiled the existing code(without my change), I see a warning was generated indicating REGION_EQUAL is not present. Too bad we missed it. This patch includes 1) Slightly modified version of miRegionEqual from miRegion.c 2) Some formating cleanup.
Diffstat (limited to 'src/vmware.h')
-rw-r--r--src/vmware.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vmware.h b/src/vmware.h
index bb1234d..3cad89d 100644
--- a/src/vmware.h
+++ b/src/vmware.h
@@ -243,6 +243,11 @@ DisplayModeRec *VMWAREAddDisplayMode(
int height
);
+Bool vmwareIsRegionEqual(
+ const RegionPtr reg1,
+ const RegionPtr reg2
+ );
+
/* vmwarecurs.c */
Bool vmwareCursorInit(
ScreenPtr pScr