Ryan C. Gordon
cc493d7195
X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!).
...
Partially fixes Bugzilla #2266 .
2015-05-26 21:26:27 -04:00
Alex Szpakowski
262e8ef3f0
Mac: Send a window resize event when the window's backing scale factor changes.
...
The backing scale factor can change when the window moves between retina and non-retina displays.
The only other way to detect such a change is to compare the output of SDL_GL_GetDrawableSize or SDL_GetRendererOutputSize every frame, which is less than desirable, especially since the necessary app logic is likely already being executed when a window resize event is received.
2015-05-26 21:51:47 -03:00
Ryan C. Gordon
be89fa09ef
Reset the keyboard state when launching a message box (thanks, Sean!).
...
Otherwise, pressed keys get stuck.
Fixes Bugzilla #2776 .
2015-05-26 20:49:27 -04:00
Ryan C. Gordon
41908548b9
Windows: Alt-F4 hotkey should be checked on keydown, not keyup (thanks, Matt!).
...
Fixes Bugzilla #2780 .
2015-05-26 20:40:00 -04:00
Alex Baines
ae6555dff8
Pump IBus events after X events.
2015-05-26 20:22:14 -04:00
Alex Szpakowski
a4f0daedae
EGL: OpenGL ES 3.0 contexts can now be created without the EGL_KHR_create_context extension.
...
Fixes bugzilla #2994 .
2015-05-26 19:34:56 -03:00
Ryan C. Gordon
80916e01f3
Cocoa: Fixed relative mouse mode when app loses/regains focus (thanks, Eric!).
...
Fixes Bugzilla #2718 .
2015-05-26 11:38:04 -04:00
Ryan C. Gordon
b11b3493b9
Windows: don't beep on Alt-* key combos (Thanks, historic_bruno!).
...
Fixes Bugzilla 2669.
2015-05-26 11:08:30 -04:00
Ryan C. Gordon
bb437f0233
Cocoa: report SDL_WINDOWEVENT_EXPOSED events to the app (thanks, David!).
...
Fixes Bugzilla #2644 .
2015-05-26 11:01:19 -04:00
Ryan C. Gordon
22704ac2df
Cocoa: don't fail outright if we see an unknown display format.
...
Just treat it as ARGB8888.
2015-05-26 09:55:41 -04:00
Ryan C. Gordon
aba4d78384
Don't look for (and fail without) glGetIntegerv() until we need to.
...
Fixes Bugzilla #2615 .
2015-05-26 10:25:15 -04:00
Sam Lantinga
2c4a6ea0a2
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Victor Luchits
afc97cbd5d
Fix duplicate raw mouse events with XInput2
...
Make XGrabPointer calls in X11_SetWindowGrab and X11_CaptureMouse
consistent by passing False to owner_mask along with proper event_mask.
2015-05-14 14:40:56 +03:00
Alex Szpakowski
240a3fbffe
iOS: Added support for SDL_DisableScreenSaver and SDL_EnableScreenSaver.
2015-05-16 16:55:56 -03:00
Philipp Wiesemann
a54d038b64
Emscripten: Fixed wrong source comment and updated web link.
2015-05-16 21:15:27 +02:00
Sam Lantinga
1c6ea0f226
Added a userdata parameter to SDL_SetWindowsMessageHook()
2015-05-13 22:39:32 -07:00
Sam Lantinga
7de242e72c
Added SDL_SetWindowsMessageHook() to facilitate full IME support on Windows
2015-05-13 22:39:20 -07:00
Alex Szpakowski
f1a7c00d06
Refactored SDL_EGL_CreateContext: It now supports context flags and OpenGL ES 3+ contexts, and its behavior more closely matches the GLX and WGL context creation code.
...
Improved the code style consistency of SDL_egl.c.
Fixes bugzilla #2865 .
2015-05-11 21:03:36 -03:00
Philipp Wiesemann
3f51758ec5
Emscripten: Fixed touch coordinates not being normalized.
2015-05-06 21:10:48 +02:00
Alex Szpakowski
ac27b511bf
Fixed SDL_GL_GetAttribute queries for framebuffer component sizes in Core Profile OpenGL contexts.
...
Fixes bugzilla #2060 .
2015-05-06 12:54:51 -03:00
Alex Szpakowski
4fc4026660
Replaced all remaining uses of NSAutoreleasePool with @autoreleasepool blocks (bugzilla #2680.)
2015-05-05 19:01:55 -03:00
Alex Szpakowski
d1372bb92c
Fixed the window offset on iOS when resuming an app with a borderless or fullscreen window that has the on-screen keyboard visible.
2015-05-05 16:20:11 -03:00
Alex Szpakowski
d603bb30e6
Fixed a crash on iOS when none of the orientations in Info.plist match the SDL window's actual orientation.
...
Fixes bug #2967 .
2015-05-05 16:16:10 -03:00
Sam Lantinga
74d83ead35
Fixed bug 2976 - Fix RGBA<->RGBA blit that was broken with the optimization from Bug 11
...
id.zeta
The optimization from Bug 11 added a code branch on cases where the source RGB masks match the destination RGB masks and a optimized blit function Blit4to4MaskAlpha that always overrides the source alpha info would be chosen. Unfortunately, the branch also errorneously took over the RGBA<->RGBA blitting cases where the source alpha info should be copied, while they would instead get overriden in Blit4to4MaskAlpha.
The attached patch fixes that by handling the RGBA<->RGBA cases correctly in that branch with the original BlitNtoNCopyAlpha as well as uses an optimized Blit4to4CopyAlpha along the same vein.
2015-05-04 21:47:40 -07:00
Ryan C. Gordon
589c46dd65
X11: send keypress events before textinput events.
2015-05-01 01:20:28 -04:00
Dimitris Zenios
d9d1a1b980
X11: Use our own cut-buffer for intermediate clipboard storage.
...
XA_CUTBUFFER0 is not defined for holding UTF8 strings.
2015-04-26 13:53:46 +03:00
Ryan C. Gordon
b72938c861
Windows: Always set the system timer resolution to 1ms by default.
...
An existing hint lets apps that don't need the timer resolution changed avoid
this, to save battery, etc, but this fixes several problems in timing, audio
callbacks not firing fast enough, etc.
Fixes Bugzilla #2944 .
2015-04-20 12:22:44 -04:00