PDA

View Full Version : Troubles with XF86VidModeSwitchModeTo()



Sansus
03-29-2001, 01:21 PM
Here it is:
- My desktop resolution is 1024x768
- I change the resolution to 640x480 with XF86VidModeSwitchToMode function
- Now I want to retrieve the screen width, I use the DisplayWidth and DisplayHeight functions but they returns me the resollution is 1024x768!! instead of 640x480... Whats happening? There is other way to retrieve the current desktop resollution???
Thx

tfpsly
03-30-2001, 06:57 AM
You get the virtual screen resolution, not the rendered area resolution.
Check if there was an error returned by XF86VidModeSwitchToMode.