Re: [User] Fix clip cursor handling on resolution change
Nov. 2, 2005
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
7448
Age (days ago)
7448
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard