| Summary: | [PATCH] XRandR video mode support | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sam Lantinga <slouken> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | don't know | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Bug Depends on: | |||
| Bug Blocks: | 145 | ||
| Attachments: |
SDL-xrandr.patch
SDL-xrandr.patch |
||
|
Description
Sam Lantinga
2006-01-29 23:15:42 UTC
Created attachment 51 [details]
SDL-xrandr.patch
Created attachment 52 [details] SDL-xrandr.patch Date: Tue, 22 Feb 2005 19:18:05 +0900 From: Aric Cyr <acyr@alumni.uwaterloo.ca> To: sdl@libsdl.org Subject: Re: [SDL] [PATCH] XRandR video mode support -- Message: 14677 -- Next: 14680 N -- (2/2) in thread ------------------- Here is a new and improved version of the XRandR patch.... this one is better tested and includes two important fixes: 1) the video mode list is sorted largest to smallest, instead of vice-versa. This meant that some of the resolution matching logic had to be reversed, so set_best_resolution() changed a fair bit for the XRandR case. 2) freeing of the screen_config state variable was removed from X11_DestroyWindow() and placed into X11_FreeVideoModes(). This fixes a segfault for applications that destroy and recreate their windows and use XRandR for mode switching (i.e. UT2004). I have only tested on an GeForce and an Radeon system in Linux. I'd like to get this tested on a few more systems that support XRandR, so please try it out and let me know how it goes. I'm looking into this patch...probably have to clean up the dynamic X11 code a little first. --ryan. Xrandr support in now in CVS. --ryan. |