ClipCursor values init on start
Carlos Lozano
clozano at andago.com
Fri Oct 24 16:08:19 CDT 2003
- Windows init the clipcursor values with width and height of
the screen of the primary display monitor.
(Theme Hospital mouse is now fixed)
Regards,
Carlos.
--
___ _ \ | / Consulting
| . |._ _ _| | ___ ___ ___ http://www.andago.com
| || ' |/ . |<_> |/ . |/ . \__ GNU/Linux
|_|_||_|_|\___|<___|\_. |\___/ _ \ __|\ \ /
Carlos A. Lozano <___'/ | \ -_) __/\__ \ > < -_)
[ carlos.lozano at andago.com ]\___|_| ____/ _/\_\___|
[ calb at epsxe.com ] http://www.epsxe.com
-------------- next part --------------
Index: windows/sysmetrics.c
===================================================================
RCS file: /home/wine/wine/windows/sysmetrics.c,v
retrieving revision 1.35
diff -u -r1.35 sysmetrics.c
--- windows/sysmetrics.c 5 Sep 2003 23:15:39 -0000 1.35
+++ windows/sysmetrics.c 24 Oct 2003 20:54:18 -0000
@@ -119,6 +119,7 @@
HDC hdc = CreateDCA( "DISPLAY", NULL, NULL, NULL );
HKEY hkey; /* key to the window metrics area of the registry */
INT dummy;
+ RECT clip;
assert(hdc);
@@ -261,6 +262,13 @@
sysMetrics[SM_CMETRICS] = SM_CMETRICS;
SystemParametersInfoA( SPI_GETSHOWSOUNDS, 0, &sysMetrics[SM_SHOWSOUNDS], 0 );
+
+ clip.left = 0;
+ clip.top = 0;
+ clip.right = sysMetrics[SM_CXSCREEN];
+ clip.bottom = sysMetrics[SM_CYSCREEN];
+
+ ClipCursor(&clip);
if (hkey) RegCloseKey (hkey);
DeleteDC( hdc );
More information about the wine-patches
mailing list