Gabriel Jacobo
afdba27236
Use XFree to release X11 allocated data
2013-03-01 13:28:07 -03:00
Sam Lantinga
7c3f6dcb24
Fixed bug 1736 - Memory leak in X11_InitModes
...
tomaszewski.p
XRRListOutputProperties allocates Atom* array, which is not freed.
XRRGetOutputProperty allocates 'unsigned char *prop' array, which is not freed.
2013-02-28 22:20:25 -08:00
Gabriel Jacobo
5a61cb4234
Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
2013-02-22 10:44:44 -03:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
1610041e3c
Implemented SDL_GetDisplayName() for X11, which requires the XRandR extension.
...
It turns out there's all kinds of good information in the EDID data for a monitor...
2012-12-31 18:32:30 -08:00
Sam Lantinga
b642847d0d
Add flags to the vidmode debug output
2012-10-06 12:16:32 -07:00
Sam Lantinga
ed51c5f966
When using Xinerama, XVidMode always works on screen 0. Otherwise use the real X11 screen.
2012-10-06 11:23:47 -07:00
Sam Lantinga
c123ff043b
XVidMode only works on the screen at the origin
2012-10-06 10:53:47 -07:00
Ryan C. Gordon
7706dcdcdc
Fixed compiler warning in debug code.
2012-10-04 23:56:37 -04:00
Sam Lantinga
6326730adb
Turn off video mode debugging
2012-10-04 20:41:22 -07:00
Sam Lantinga
15453a515c
I'm becoming more and more convinced that the application should never use XRandR, and it's the window manager's responsibility to track and manage display modes for fullscreen windows.
...
Because it's so broken, I'm going to disable XRandR by default. You can still enable it via environment variable or application hint (SDL_HINT_VIDEO_X11_XRANDR)
2012-10-04 13:50:41 -07:00
Sam Lantinga
e58466c00c
This hack doesn't work very well. I'd rather just show the problem so it can be fixed.
2012-10-03 19:39:12 -07:00
Sam Lantinga
1a755a5361
Fixed refresh rate calculation
2012-10-03 19:25:08 -07:00
Sam Lantinga
c0bf64438a
Don't try to query outputs that are not hooked up to a crtc
2012-10-03 19:24:11 -07:00
Sam Lantinga
0a55594783
Added a delay hack to let the window manager adjust to the mode change. I'm not sure if this is a good idea, but at least it works sometimes now. :)
2012-10-03 19:02:46 -07:00
Sam Lantinga
925bca7d2a
Rewritten X11 video mode support to directly set requested modes and exactly restore the desktop mode at shutdown.
2012-10-03 18:56:29 -07:00
Sam Lantinga
8577652dea
Fixed compile error - had work in progress in there.
2012-10-03 12:04:30 -07:00
Sam Lantinga
44e9296ce3
Fixed XRandR code to change resolution on the correct monitor in a multi-monitor setup.
2012-10-03 11:33:09 -07:00
Sam Lantinga
5d20dc56bf
Get the correct screen bounds from xinerama
2012-09-28 14:22:18 -07:00
Sam Lantinga
49cba901a5
Fixed detection of display bounds after a mode switch when Xinerama is enabled.
2012-09-28 11:51:16 -07:00
Sam Lantinga
978b87dccb
Fixed bug where desktop resolution was never restored if Xinerama was enabled.
2012-09-28 00:40:47 -07:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Sam Lantinga
2c07f9f35b
Fixed fullscreen origin for multi-head displays
2012-09-27 13:23:34 -07:00
Sam Lantinga
0582dc6ce3
Turned the X11 mode extension environment variables into hints so they can be more easily set from applications.
2012-09-27 11:29:13 -07:00
Sam Lantinga
7c835f8560
Fixed bug where Xinerama was treated as being available even if it wasn't.
...
Also added additional logging for X11 video modes
2012-09-27 10:41:16 -07:00
Gabriel Jacobo
1d3f4c2eca
Fixes #1522 , improved Xinerama / Twinview support
2012-06-19 14:19:05 -03:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Ryan C. Gordon
864b4535a9
Use correct Xinerama APIs for querying version and availability.
...
Fixes Bugzilla #1314 .
2011-10-24 15:33:58 -04:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
fc9ee0c10f
Fixed so code will compile with SDL_config_minimal.h
2011-03-12 13:21:57 -08:00
Sam Lantinga
7dd0385c57
Gamma support is back!
...
New API functions:
SDL_SetWindowBrightness()
SDL_GetWindowBrightness()
SDL_SetWindowGammaRamp()
SDL_GetWindowGammaRamp()
SDL_CalculateGammaRamp()
2011-03-11 08:49:20 -08:00
Sam Lantinga
73b501d88c
Dynamically load the Xinerama and xf86vmode extensions
...
This fixes a few bugs with different distributions:
http://bugs.freedesktop.org/show_bug.cgi?id=17431
http://bugs.gentoo.org/show_bug.cgi?id=246177
2011-02-28 09:01:53 -08:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
e0f869b698
Removed gamma support since it wasn't widely used and not well supported.
2011-02-10 11:39:08 -08:00
Sam Lantinga
3bcc4afe75
Added the X11 framebuffer implementation. Simple! :)
2011-02-04 18:05:20 -08:00
Sam Lantinga
09a8558897
Making the API simpler, removed support for palettized video modes and textures.
2011-02-01 21:23:43 -08:00
Sam Lantinga
7f0983054d
Now that the fullscreen wm state works, enable the video modes. Yay! :)
2010-07-14 01:02:18 -07:00
Sam Lantinga
c62b2a5995
Turned off debug spew
2010-07-13 23:14:00 -07:00
Sam Lantinga
983b11625f
Lots of prep for the "real" way to support fullscreen mode on modern window managers.
...
Unfortunately, this doesn't work. I also noticed that maximizing doesn't work as well. Also xprop hangs when trying to list properties of SDL windows.... ???
2010-07-13 23:11:10 -07:00
Sam Lantinga
4d3df8b3e3
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
2010-01-24 21:10:53 +00:00
Sam Lantinga
a5eb078863
Don't add any renderers if you can't add any displays
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404264
2009-12-04 09:01:48 +00:00
Sam Lantinga
1cd715e9db
Work in progress on multi-display support:
...
* Added display parameter to many internal functions so video modes can be set on displays that aren't the public current one.
* The fullscreen mode is associated with fullscreen windows - not displays, so different windows more naturally have a mode associated with them based on their width and height. It's no longer necessary to specify a fullscreen mode, a default one will be picked automatically for fullscreen windows.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404241
2009-12-01 05:57:15 +00:00
Sam Lantinga
b84ae14eeb
Don't use DirectColor visuals until we implement DirectColor colormap support
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403425
2009-01-02 15:47:49 +00:00
Sam Lantinga
c16d0bb0ee
Whoops, we need to actually fill the colormap on DirectColor visuals.
...
Temporarily disable them for now.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403416
2009-01-02 04:35:52 +00:00
Sam Lantinga
2184f43b1c
Fixed DirectColor visual window creation problem
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403407
2009-01-01 18:58:26 +00:00
Sam Lantinga
08e0277512
indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403382
2008-12-25 05:26:29 +00:00
Sam Lantinga
6a3665cb25
Fixed pitch alignment problem causing MITSHM error on 16-bit displays
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403378
2008-12-25 04:42:28 +00:00
Sam Lantinga
d62956121f
/* FIXME FIXME FIXME
...
* Window creation fails in the colormap code on DirectColor visuals:
* XA_RGB_BEST_MAP not found and could not be created
* I'm disabling this for now until Bob can look at it. We don't need
* it until we implement the gamma fading using DirectColor RGB ramps
*/
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403368
2008-12-22 04:58:35 +00:00
Sam Lantinga
67426e7b9f
indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403336
2008-12-16 17:44:10 +00:00
Sam Lantinga
a01b1f5aec
Progress on fullscreen mode switching on X11
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403335
2008-12-16 17:41:03 +00:00