Ryan C. Gordon
b007cfea84
X11: Add Xdbe support to message boxes (thanks, Melker!).
...
Without this, message boxes with a lot of text will noticibly flicker as
you mouse over buttons.
Fixes Bugzilla #2343 .
2015-05-28 00:30:21 -04:00
Ryan C. Gordon
48c1032b42
Patched to compile on C89 compilers.
2015-05-27 19:00:56 -04:00
Ryan C. Gordon
e2d788ca24
Wayland: Avoid NULL dereference after window destruction (thanks, "x414e54"!).
...
Fixes Bugzilla #2934 .
--HG--
extra : rebase_source : 30ce72975198991c6fc8142c31f5f32a2fc5ec13
2015-05-27 18:54:06 -04:00
Sam Lantinga
8f0605e8f7
Fixed detecting PS4 wired controller on Windows
2015-05-27 10:29:43 -07:00
Ryan C. Gordon
d8ec531228
Back out changeset 12d477422f47.
...
This change didn't do what I thought it did, sorry.
2015-05-26 22:57:42 -04:00
Ryan C. Gordon
85539b2b2d
X11: generate clipboard update events (thanks, "chw"!).
...
Partially fixes Bugzilla #2266 .
--HG--
extra : histedit_source : 24ea05997ba9f2b128108100786937281d594cc5
2015-05-26 21:29:45 -04:00
Ryan C. Gordon
a7d766c672
Uh, yeah, it helps to press "Save" before committing...
...
--HG--
extra : histedit_source : b409e7ace844af17fad818cc763ea8c47bad1e44
2015-05-26 21:30:41 -04:00
Ryan C. Gordon
250bcd30cd
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
Ryan C. Gordon
6ff4d48902
Stack hint should look for 0, not -1, and not care about environment variables.
2015-05-26 21:19:23 -04:00
Ryan C. Gordon
12bbb8e161
Added a hint to specify new thread stack size (thanks, Gabriel!).
...
Fixes Bugzilla #2019 .
(we'll do a better fix when we break the API in SDL 2.1.)
2015-05-26 21:13:27 -04:00
Ryan C. Gordon
8ff2462ace
Properly report DX headers in the CMake project files (thanks, "MailMr_S"!).
...
Fixes Bugzilla #2900 .
2015-05-26 21:09:48 -04:00
Alex Baines
1306c6dedb
[IBus] Only register interest in messages sent to our input context.
2015-02-27 21:17:29 +00:00
Alex Baines
f6173ad6a1
[ibus] Send an empty TextEditing event when the text is cleared by pressing backspace.
2015-02-01 21:08:54 +00:00
Ryan C. Gordon
f21e896d62
Added some unknown keys from Japanese 106/109 keyboards (thanks, "ver0hiro"!).
...
This adds them for Windows and X11.
Fixes Bugzilla #2820 .
--HG--
extra : rebase_source : 2c768842279e52a74c4077fc60f24f1a6cf5548c
2015-05-26 20:55:03 -04:00
Alex Szpakowski
96604e9856
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
ab6a3dbfe2
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
b8b646c243
Windows: Alt-F4 hotkey should be checked on keydown, not keyup (thanks, Matt!).
...
Fixes Bugzilla #2780 .
2015-05-26 20:40:00 -04:00
Ryan C. Gordon
ca08bb0d98
Android: Added basic drop file support (thanks, "noxalus"!).
...
This lets SDL-based apps respond to "Open With" commands properly, as they
can now obtain the requested path via a standard SDL dropfile event.
This is only checked on startup, so apps don't get drop events at any other
time, even if Android supports that, but this is still a definite
improvement.
Fixes Bugzilla #2762 .
2015-05-26 20:36:45 -04:00
Alex Baines
d4f288f080
Pump IBus events after X events.
2015-05-26 20:22:14 -04:00
Ryan C. Gordon
6c21798873
Fix a libtool issue with some mingw-w64 cross compilers (thanks, Ozkan!).
...
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15321
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commit;h=0ebb734910bf56186dd0c0e84b1c8be507bad336
Fixes Bugzilla #2722 .
--HG--
extra : rebase_source : 76693b972b1ac98e0b096a031da73d3bfffacf95
2015-05-26 19:54:06 -04:00
Alex Szpakowski
f3010ca3a2
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
2193e198e8
Drop out of SDL_UpdateTexture() early if the rectangle is zero pixels.
...
Hopefully makes static analysis happy about a zero-byte malloc elsewhere.
2015-05-26 16:42:36 -04:00
Ryan C. Gordon
b9ea3c02d2
Some setups need _GNU_SOURCE to make LLONG_MAX available (thanks, Ozkan!).
...
Fixes Bugzilla #2721 .
--HG--
extra : histedit_source : e9fc595fbb091ace7be1350afc76e77b81ed024d
2015-05-26 16:31:11 -04:00
Ryan C. Gordon
2102ee2bb9
Fix fallback define for DECLSPEC for non-Windows platforms.
...
Looks like it was a copy/paste error?
GCC doesn't support visibility attributes until gcc4, so just make it blank.
Fixes Bugzilla #2720 .
--HG--
extra : histedit_source : 3d62ff645cec83943bb96888bdf43415c19228ef
2015-05-26 16:25:22 -04:00
Ryan C. Gordon
f9e0e40db2
Whoops, fix the static analysis fix.
2015-05-26 16:14:25 -04:00
Ryan C. Gordon
52f8afaf0c
Mac: Fix compiler warning when building with a min target >= 10.6.
2015-05-26 12:52:28 -04:00
Ryan C. Gordon
0f24d58e4e
Darwin haptic: Fixed a static analysis warning if axes==0.
2015-05-26 12:47:03 -04:00
Ryan C. Gordon
4cb7923f25
Linux joystick: Look at entire axis namespace for controls (thanks, "spaz16"!).
...
This apparently has fallout: the PS4 (and maybe PS3?) controllers apparently
report some bogus axes, but it won't change the axes we currently expect, and
thus the game controller config string is still stable.
Fixes Bugzilla #2719 .
--HG--
extra : rebase_source : 8c5a4d949e4706366bbf2d98d2d2df1762d040a9
2015-05-26 12:03:51 -04:00
Sam Lantinga
2fd64c2f12
Fixed bug 2869 - Controllers connected on launch are reported twice.
...
Since all device detection/removal happens on the main thread now, post events inline with when the status changes occur.
Also fixed rare cases when joystick API functions could return data about removed joysticks when called with a device index.
2015-05-26 08:52:02 -07:00
Ryan C. Gordon
b203ccfa24
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
94dc4ff928
Make dot easier to see in testrelative.
2015-05-26 11:32:06 -04:00
Ryan C. Gordon
1793c3c04d
Updated configure script.
2015-05-26 11:13:51 -04:00
Ryan C. Gordon
fc70e496dd
Removed -XCCLinker from MingW command line (thanks, Fredrik!).
...
Fixes Bugzilla #2707 .
2015-05-26 11:12:28 -04:00
Ryan C. Gordon
84969e4c4e
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
12018c9d31
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
19b53694f2
Cocoa: don't fail outright if we see an unknown display format.
...
Just treat it as ARGB8888.
--HG--
extra : rebase_source : 0b71e0a04b8b75cf8510044a76dd3928f3763107
extra : amend_source : f96486027b6da284bb993890f144631851b580fb
extra : histedit_source : d3ec58801ce5058d63f16d1242a2a1aa4445fea7
2015-05-26 09:55:41 -04:00
Ryan C. Gordon
4e39f6e310
Don't look for (and fail without) glGetIntegerv() until we need to.
...
Fixes Bugzilla #2615 .
--HG--
extra : histedit_source : f327a3f044456d65c3fb6aae4c2bfd8c09ac6072
2015-05-26 10:25:15 -04:00
Sam Lantinga
4ad4d105c8
Fixed bug 1392 - Debian patch: do not propagate -lpthread
2015-05-26 06:32:19 -07:00
Sam Lantinga
56b58afdbe
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Sam Lantinga
85c40e45b7
Script from Sylvain to automate updating the copyright year
2015-05-26 06:27:12 -07:00
Sam Lantinga
f5e7adf421
Fixed bug 2989 - Memory loss in clipboard_testClipboardTextFunctions
2015-05-26 06:16:43 -07:00
Sam Lantinga
2ae3e48bcf
Wait for devices to finish initializing when inserted, before using them. Fixes hotplug issue with XBox 360 game controller.
2015-05-25 16:22:09 -07:00
Sam Lantinga
7fb16deda0
Added support for Razer Serval Bluetooth mode
2015-05-25 14:52:41 -07:00
Victor Luchits
8eac3c7114
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
Sam Lantinga
f15df00856
Sign any subframeworks - not needed for SDL proper, but included for consistency with other projects
2015-05-23 09:33:20 -07:00
Philipp Wiesemann
1674b49dc4
Android: Fixed touch pressure being out of range.
...
According to the documentation of Android's MotionEvent, the getPressure() may
return values higher than 1 on some devices. To prevent passing such values into
SDL they are now corrected to 1 in Java before the JNI call (where it is assumed
to be correct).
Currently SDL only sends SDL_FINGERMOTION events if the touch state (position or
pressure) changed. By correcting pressure down to 1 some events may get dropped
in the rare case that only the pressure was changed but was out of range and the
position did not change.
2015-05-22 22:34:08 +02:00
Philipp Wiesemann
ae188bcbae
Removed redundant NULL check in test program.
2015-05-21 21:27:53 +02:00
Philipp Wiesemann
4575b60c5d
Changed clean-up order in test program.
2015-05-21 21:25:32 +02:00
Philipp Wiesemann
a5c372da01
Fixed undefined key access in test program.
2015-05-21 21:25:14 +02:00
Sam Lantinga
cc1d46d30e
Added game controller support for the Razer Serval
2015-05-20 16:28:21 -07:00