Commit graph

2474 commits

Author SHA1 Message Date
Gabriel Jacobo
1984b3b92e Fixes wrong assignment of SDL_Color "unused" member in DirectFB backend. 2013-02-26 13:53:02 -03:00
Andreas Schiffler
3269062684 Fix cygwin compile 2013-02-26 07:50:42 -08:00
Jørgen P. Tjernø
05631f0599 sdl
- fix win32 mapping of alpha-numeric keys after scancode changes
2013-02-25 16:52:52 -08:00
Jørgen P. Tjernø
383deb9a61 sdl2
- more scancode goodness, removing now dead wparam translation code
- add scancode for SDL_SCANCODE_NONUSBACKSLASH
- don't translate sdl key values for numeric and grave key

CR: SamL
2013-02-25 16:52:51 -08:00
Jørgen P. Tjernø
cf58b77360 sdl2
- change the windows scancode logic to use the scan code value in lparam rather than VK's to get a stable scancode value across different KB layouts
2013-02-25 16:52:42 -08:00
Sam Lantinga
95adf91d71 Don't crash if we are asked to convert a surface to a NULl buffer. 2013-02-25 00:54:25 -08:00
Gabriel Jacobo
5a61cb4234 Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds 2013-02-22 10:44:44 -03:00
Sam Lantinga
7da5b83b75 Allow abbreviated strings to be used for driver names.
This allows people to use "pulse" with both SDL 1.2 and 2.0
2013-02-18 20:14:24 -08:00
Jørgen P. Tjernø
6e147b2087 Fix SDL_SetWindowSize on certain WMs.
Makes SDL_SetWindowSize work on some WMs (like Fluxbox, ion3, Awesome,
WindowMaker), and when running without a WM.

Fixes bug 1513.
CR: saml
2013-02-18 18:28:02 -08:00
Sam Lantinga
72ec6bcbe2 Fixed bug where if X11 is not dynamically loaded, then we think none of the X11 modules are available. 2013-02-18 16:24:33 -08:00
Sam Lantinga
6e2c0511ee Added SDL license to Android clipboard implementation 2013-02-16 13:35:28 -08:00
Sam Lantinga
95dcfa4c28 Happy New Year! 2013-02-15 08:47:44 -08:00
Sam Lantinga
20cad0087c Missed a few files when switching to the zlib license 2013-02-15 08:27:57 -08:00
Sam Lantinga
963c65929d Don't crash if we have the extension but couldn't load the XInput shared library. 2013-02-14 15:40:19 -08:00
Michael Sartain
73eaf569f4 Clear relative mouse mode and restore when bringing up sdl message box. 2013-02-14 13:22:05 -08:00
Sam Lantinga
a1afe6c175 tree 5b46fd5b8c94
parent 971b278f0756
author Edward Rudd <urkle@outoforder.cc> 1358022907 18000
committer Edward Rudd <urkle@outoforder.cc> 1358022907 18000
revision 6819
branch default

Remove some redundant assigns
2013-02-11 21:47:13 -08:00
Sam Lantinga
c54822142d Fixed increasing the size of resizable windows 2013-02-11 21:39:58 -08:00
Sam Lantinga
eb63dcd330 Fixed mouse wheel delta on Windows 2013-02-11 21:29:36 -08:00
DavidLudwig
9bb95ef16a converted tabs to spaces in iOS/UIKit PumpEvents code 2013-01-04 16:38:05 -05:00
Sam Lantinga
8af5f8ee18 Fixed double-default case 2013-02-11 18:22:32 -08:00
Sam Lantinga
cf60f13a01 Fixed compiler warnings 2013-02-11 18:18:34 -08:00
Sam Lantinga
d36265107b Backed out use of @autorelease keyword for now, since it's not supported by older Xcode versions. 2013-02-11 17:39:52 -08:00
Sam Lantinga
8ec12be05a Workaround for NVIDIA bug in glXSwapIntervalEXT.
This works around a bug in NVIDIA's implementation of
       glXSwapIntervalEXT, where it ignores updates to what it *thinks* is the
       current value, even though glXQueryDrawable returns a different value.

       Bug reported to NVIDIA and will hopefully be a part of 319.xx.

       Also a fix for invalidly treating glXSwapIntervalEXT as having an int
       return value (it's void).
2013-02-11 17:02:13 -08:00
Andreas Schiffler
da76be8927 Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings 2013-02-08 07:14:50 -08:00
Sam Lantinga
069a2cce76 Fixed bug 1682 - Resize collapses window instantly to a size of 0 x 124.
Marco Schmidt

After sizing my main window (the only window in my application) through
grabbing the window border with the mouse the window collapses instantly to a
size of 0 x 124. In my application I can not resize the window to a normal size
again.

I tried to reproduce the problem - and here a the minimal steps I found.

I'm running WIN8 x64, VS2012Pro, HG SDL-2.0 tip, WIN32-Build.

Minimal steps to reproduce my problem:

- open solution SDL_VS2012
- make testdraw2 the start project
- pass command line option --resize to the debuggee testdraw2
- starting the application testdraw2
- try to resize the window
- the application window resizes to a minimal size 0 x 124.
- the application crashes to divide by zero .... (this is only the aftermath
but a unhandled error condition)
2013-02-08 01:04:07 -08:00
Sam Lantinga
352adba2df Fixed bug 1689 - Leaks galore in OS X Cocoa code.
Edward Rudd

This is to document the various leaks I'm finding in the Cocoa code in SDL 2.
2013-02-08 00:54:08 -08:00
Michael Sartain
079d0ee977 Add defines to disable setlocale and fork. Disable that code by default for now. 2013-02-05 12:10:54 -08:00
Michael Sartain
f398faa548 Use left facing arrow instead of right facing arrow for system cursor. 2013-02-05 12:09:59 -08:00
stopiccot
929560081c Replaced manual NSAutoreleasePool handing with @autorelease 2013-01-06 19:04:53 +03:00
Ryan C. Gordon
d41de59fc9 Cleaned out a few C++ single-line comments.
Should we bother doing this anymore? Is there really a C compiler we care
 about that doesn't support this?
2013-01-21 02:50:11 -05:00
Andreas Schiffler
b4a190fb6f Update SDL_InvalidParamError to take param name; add additional fuzzer function; add new tests to keyboard test suite; improve surface test suite 2013-01-12 22:58:12 -08:00
Ryan C. Gordon
89124cba8b Fix a memory leak. We need to clean up our autorelease pool code at some point. 2013-01-12 14:04:51 -05:00
Andreas Schiffler
a20096403e Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite 2013-01-11 20:36:39 -08:00
Sam Lantinga
3067058b0d Fixed compiler warnings in edid-parse.c 2012-12-26 07:11:56 -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
Edward Rudd
088842729f Corrected call to glXMakeCurrent() when setting a NULL context.
Fixes Bugzilla #1675.
2012-12-31 19:16:52 -05:00
Sam Lantinga
0c7ab10e80 Implemented getting the display name on Windows 2012-12-31 15:36:19 -08:00
Sam Lantinga
b1185a32e3 Fixed bug 1616 - SDL does not use values set with SDL_GL_SetAttribute on Android
Philipp Wiesemann 2012-10-06 07:19:57 PDT

SDL does not use values set with SDL_GL_SetAttribute on Android.

I attached a patch which adds this functionality and makes it possible to set
(for example) depth buffer size or anti-aliasing in the actual application
instead of modifying the Java source (which seems currently the only way).
2012-12-31 14:57:36 -08:00
Sam Lantinga
69c062e757 Fixed bug 1671 - add cast to fix build with strict GCC settings
Pavol Rusnak 2012-12-21 16:08:39 PST

I suggest the following patch to fix build with strict GCC settings
2012-12-31 14:14:01 -08:00
Sam Lantinga
1a92f18381 Added SDL_SetWindowMaximumSize() and SDL_GetWindowMaximumSize()
Also fixed Cocoa implementation so that it affects client area, not the whole window area.
2012-12-31 12:15:25 -08:00
Sam Lantinga
ce28a79602 Added SDL_GetDisplayName(), with implementation for Mac OS X 2012-12-31 11:07:46 -08:00
Sam Lantinga
5e519b21ed Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex() 2012-12-31 10:29:17 -08:00
Sam Lantinga
f367ee7277 Implemented SDL_HINT_ALLOW_TOPMOST for the Cocoa video driver 2012-12-31 10:14:38 -08:00
Sam Lantinga
f4294fd806 Improvements from Alfred:
- Added new SDL_HINT_ALLOW_TOPMOST hint, when set to "0" then never set the topmost bit on a window. Useful when debugging fullscreen issues.
- fixed crash in windows joystick scanning if we failed to load the xinput dll
- added support for SDL_WINDOW_FULLSCREEN_DESKTOP under windows
- synthesize relative mouse movements if directinput fails to send relative moves, happens under virtual box.
2012-12-31 09:30:15 -08:00
Sam Lantinga
db5b89f13f Don't crash if loading the OpenGL library fails 2012-12-28 14:46:03 -08:00
Ryan C. Gordon
fc98164d8d Replaced Gnome screensaver hack with D-Bus messages to org.gnome.ScreenSaver. 2012-12-28 03:46:55 -05:00
Ryan C. Gordon
c2ec53f4fa X11 messageboxes should treat "\r\n" as "\n" by ignoring the '\r' char.
--HG--
extra : rebase_source : 0054e96755f753555237f3d7dd64f1dfa1a1e56c
2012-12-16 14:39:49 -05:00
Sam Lantinga
dfe7f2bc59 Improvements from Alfred:
- Add new SDL_WINDOW_FULLSCREEN_DESKTOP video mode, makes a fullscreen window the size of the desktop (i.e no window manager mode change)
- Fix crash in warp mouse if you specified null as the window
- Added new SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS Hint, if set to 0 then don't minimize a fullscreen window on focus lost (if not set or set to non-zero then minimize on focus loss)
2012-12-15 00:30:17 +00:00
Sam Lantinga
3899bd164f Fixed permissions for code generation scripts 2012-12-11 12:01:04 -08:00
Ryan C. Gordon
de32627287 Fork a child process for X11 message boxes, so setlocale() doesn't break stuff. 2012-12-08 15:33:14 -05:00