2 Nov
2005
2 Nov
'05
11:14 a.m.
Lionel Ulmer <lionel.ulmer(a)free.fr> writes:
@@ -173,6 +174,13 @@ /* Initialize system colors and metrics */ SYSPARAMS_Init();
+ /* Now that system metrics are set-up, we can initialize the clip rectangle */ + rect.left = 0; + rect.right = GetSystemMetrics(SM_CXSCREEN); + rect.top = 0; + rect.bottom = GetSystemMetrics(SM_CYSCREEN); + ClipCursor(&rect); +
Please don't add more init code that requires the graphics driver, I've been trying hard to get rid of these. I think it would be a lot cleaner to simply store a 'no clip cursor' state that would return the full resolution, then you could simply do a ClipCursor(NULL) on resolution changes. -- Alexandre Julliard julliard(a)winehq.org