Resolution switches in full screen mode

Ciprian Enache Ciprian.Enache at k.ro
Sun Nov 30 13:52:55 CST 2003


  
My first post! Here we go:

To make resolution switches work OK in Wine full-screen apps (mostly games)
there are a couple of SYSMETRICS that need to be kept updated (SM_CYSCREEN,
SM_CXSCREEN - the vertical and horizontal resolution)

There are 2 ways to do it:
1. Call SYSMETRICS_Set from x11drv when the resolution changes and update
the values of SM_CXSCREEN, SM_CYSCREEN etc.
Disadvantage: probably breaks DLL separation.

2. Add 2 calls to USER_Driver GetWidth and GetHeight (in x11drv) - and
dynamically call those when we are asked about SM_CXSCREEN and SM_CYSCREEN.
I wrote a patch for this.

Any feedback?


 




 
Sentimente.ro - www.sentimente.ro
Peste 50.000 de prieteni te asteapta!







More information about the wine-devel mailing list