Lionel Ulmer lionel.ulmer@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.