Troubles with XF86VidModeSwitchModeTo()

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???

You get the virtual screen resolution, not the rendered area resolution.
Check if there was an error returned by XF86VidModeSwitchToMode.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.