Commit graph

7931 commits

Author SHA1 Message Date
Sam Lantinga
e3348efdf0 Fixed log typo 2014-10-13 14:10:41 -07:00
Sam Lantinga
c6db261ed3 Minor cleanups 2014-10-13 10:46:27 -07:00
Sam Lantinga
fff8273b2a Added configure options to disable OpenGL ES 1.1 and 2.0 individually 2014-10-13 10:43:10 -07:00
David Ludwig
b43fc928e6 WinRT: expanded the documentation on SDL_HINT_WINRT_HANDLE_BACK_BUTTON 2014-10-04 14:59:41 -04:00
Jørgen P. Tjernø
74e2ea85ee Mac: Fix build with clang from Xcode 6. 2014-09-30 11:20:50 -07:00
Philipp Wiesemann
21af0c2d68 Fixed broken layout for buttons with configured color in messagebox on Android. 2014-09-25 20:56:27 +02:00
Philipp Wiesemann
00a37f9098 Added setting configured color to button texts for messagebox on Android. 2014-09-24 23:46:46 +02:00
David Ludwig
9b713b6f0a WinRT: cleaned up the opening section of the README 2014-09-19 12:09:51 -04:00
David Ludwig
420bbb0a84 WinRT: fixed broken emphasis formatting in README, when rendering it with Doxygen 2014-09-19 11:27:18 -04:00
Gabriel Jacobo
49225a66cf [Android] Better fix for #2480, pause/resume audio 2014-09-18 11:03:34 -03:00
Ryan C. Gordon
5ac5bdcea5 Haptic: Deal with negative periodic magnitudes (thanks, Elias!).
A negative periodic magnitude doesn't exist in Windows' and MacOS' FF APIs

The periodic magnitude parameter of the SDL Haptic API is based on the Linux
 FF API, so it means they are not directly compatible:
    'dwMagnitude' is a 'DWORD', which is unsigned.

Fixes Bugzilla #2701.

--HG--
extra : amend_source : eb0b85870149936fd451ddb0662841112ff93d07
2014-09-17 14:49:36 -04:00
Ryan C. Gordon
576ad3a595 Fixed haptic documentation typos (thanks, Elias!).
Partially fixes Bugzilla #2701.
2014-09-17 14:47:42 -04:00
Gabriel Jacobo
8a4dc0573c [Android] Fixes #2480, music does not pause when process backgrounded
This modifies SDL_PauseAudio behavior to pause all audio devices instead of
just the default one (required on Android, at least for testmultiaudio on my
Nexus 4 which reported 2 audio devices).
It also changes SDL_PauseAudioDevice to retain the device lock from pause until
resume in order to save battery in mobile devices.
2014-09-17 11:41:12 -03:00
Gabriel Jacobo
b70d45cec5 [Android] Fixes #2679 - Crash resuming from screen off
Before destroying the static Java-side data, wait for the SDL native thread,
*and* the listener thread that waits on it to trigger a clean up.
2014-09-17 08:59:43 -03:00
Philipp Wiesemann
b21d8b89b9 Fixed doxygen warning and markdown formatting.
Three backticks for blocks are not supported by doxygen.
2014-09-16 23:09:32 +02:00
Philipp Wiesemann
946ca79670 Fixed key down closing messagebox dialog instead of key up on Android.
This fixed sending key up event to SDL a dialog closed by down did not consume.
2014-09-14 19:44:53 +02:00
David Ludwig
1a8f57ac97 WinRT: made README note that Win 8.0 targeting via MSVC 2013 Express is not possible 2014-09-14 13:10:21 -04:00
David Ludwig
b277ba5f5a WinRT: expanded and updated the README section on MSVC requirements 2014-09-14 12:57:26 -04:00
David Ludwig
133d5caf72 WinRT: added manual, app-setup instructions to the README
A number of other parts of the WinRT README were edited, either for clarity, or to help with Markdown rendering.
2014-09-14 11:36:24 -04:00
David Ludwig
83c375f91f WinRT: added a note to README regarding need for a MS account 2014-09-14 10:31:18 -04:00
David Ludwig
5b705c4f29 WinRT: cleaned up section headers 2014-09-14 10:29:54 -04:00
Ryo Munakata
18edcb1582 video: waylandmouse: handle mmap error properly
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
2014-09-09 17:26:16 +09:00
Sam Lantinga
56f86cc81f Fixed bug 2415 - Message Boxes aren't implemented on Android
Philipp Wiesemann

I attached a patch for an incomplete implementation of the messagebox parts.

It was not tested on lots of devices yet and features a very fragile workaround to block the calling SDL thread while the dialog is handled on Android's UI thread. Although it works for testmessage.c I assume there are lot of situations were it may fail (standby, device rotation and other changes). Also not all flags and colors are implemented.

On the other hand most uses of the messagebox are to show an error on start and fragility (or working at all) may not matter there.
2014-09-13 02:15:18 -07:00
Sam Lantinga
f464f677f2 Fixed using uninitialized display data in iMX6 initialization 2014-09-12 15:09:33 -07:00
Pierre-Loup A. Griffais
d74afdb47b [X11] Reconcile logical keyboard state with physical state on FocusIn
since the window system doesn't do it for us like other platforms.

This prevents sticky keys and missed keys when going in and out
of focus, for example Alt would appear to stick if switching away
from an SDL app with Alt-Tab and had to be pressed again.

CR: Sam
2014-09-11 19:24:42 -07:00
Sam Lantinga
6ed37a2783 DSCAPS_GL was added for DirectFB 1.6 2014-09-10 14:05:27 -07:00
Sam Lantinga
c3bcad21c9 Report the correct desktop video mode on the iMX6 2014-09-10 08:59:19 -07:00
mastermind
97fde15915 Freescale i.MX6 video driver
---
 CMakeLists.txt                  |   2 +
 cmake/sdlchecks.cmake           |  20 +++
 configure                       |  51 +++++++
 configure.in                    |  28 ++++
 include/SDL_config.h.cmake      |   1 +
 include/SDL_config.h.in         |   1 +
 src/video/SDL_sysvideo.h        |   3 +
 src/video/SDL_video.c           |   3 +
 src/video/mx6/SDL_mx6events.c   |  45 ++++++
 src/video/mx6/SDL_mx6events_c.h |  31 +++++
 src/video/mx6/SDL_mx6opengles.c | 211 ++++++++++++++++++++++++++++
 src/video/mx6/SDL_mx6opengles.h |  68 +++++++++
 src/video/mx6/SDL_mx6video.c    | 301 ++++++++++++++++++++++++++++++++++++++++
 src/video/mx6/SDL_mx6video.h    |  78 +++++++++++
 14 files changed, 843 insertions(+)
 create mode 100644 src/video/mx6/SDL_mx6events.c
 create mode 100644 src/video/mx6/SDL_mx6events_c.h
 create mode 100644 src/video/mx6/SDL_mx6opengles.c
 create mode 100644 src/video/mx6/SDL_mx6opengles.h
 create mode 100644 src/video/mx6/SDL_mx6video.c
 create mode 100644 src/video/mx6/SDL_mx6video.h
2014-09-10 08:54:01 -07:00
Ryan C. Gordon
4428368af2 Deal with various .bmp file format variants in SDL_LoadBMP_RW().
This helps when modern versions of The Gimp (and lots of other things)
produces a 32-bit bitmap with an alpha channel, or anything with "BI_BITFIELDS"
format, since that data is now embedded in the bitmap info header instead of
directly following it and we would accidentally skip over embedded versions of
it.

Fixes Bugzilla #2714.
2014-09-08 01:36:22 -04:00
Philipp Wiesemann
1f88e2564a Fixed example in header file.
Did not compile because of typo in function name and missing argument.
2014-09-06 23:20:14 +02:00
Philipp Wiesemann
f3ca5c6fa0 Changed version displayed in documentation generated by doxygen. 2014-09-04 22:59:32 +02:00
Jørgen Tjernø
9f3d577a93 Fix non-power-of-two shaped windows.
This fixes a bug where SDL_SetWindowShape would render artifacts if the image
was not a power of two image, due to rounding of width / 2.
2014-09-02 14:14:23 -07:00
Sam Lantinga
98e9c13a13 Updated version to 2.0.4 2014-09-02 06:55:47 -07:00
Ryan C. Gordon
3e754ff61f Mac: Don't add the same joystick twice if IOKit reports a duplicate device.
Fixes Bugzilla #2704.
2014-08-31 11:21:10 -04:00
Philipp Wiesemann
c27fbbc30b Corrected hint documentation. 2014-08-27 23:27:42 +02:00
Sam Lantinga
f7cbb0d535 Fixed memory leak getting the X11 window title 2014-08-25 10:55:54 -07:00
Sam Lantinga
f9a36bc6bb Fixed bug 2699 - possible memory leak in GL_RenderReadPixels
Benoit Pierre

If glReadPixels returns an error, than the temporary buffer is not deallocated
2014-08-24 00:02:12 -07:00
Sam Lantinga
7be9d6a947 May have fixed the Linux build again 2014-08-23 19:06:54 -07:00
Sam Lantinga
f3479bc3a2 Fixed Linux build 2014-08-23 11:00:16 -07:00
Sam Lantinga
46e3d957ab Fixed bug 2696 - Mac: fix display mode refresh rate calculation
Alex Szpakowski

SDL's Cocoa backend uses the CGDisplayMode API to get refresh rate information about a display mode, but CGDisplayModeGetRefreshRate will return 0 on most non-CRT monitors.

The only way I know of to get correct refresh rate information in OS X is via the CoreVideo DisplayLink API.
I have attached a patch which tries to use the CVDisplayLinkGetNominalOutputVideoRefreshPeriod function if CGDisplayModeGetRefreshRate fails, which fixes display mode refresh rate information on the monitors I tested.

The CVDisplayLink API requires linking with the CoreVideo framework, and the patch updates the various build files to do so.
2014-08-23 10:47:50 -07:00
Ryan C. Gordon
ca62d75878 Fix declaration-after-statement errors in ibus code. 2014-08-21 23:22:46 -04:00
Ryan C. Gordon
10ea347312 Adjusted code style slightly for SDL_ibus.c 2014-08-21 23:15:17 -04:00
Ryan C. Gordon
8050ad9269 Added note about libibus-1.0-dev to the Linux README. 2014-08-21 23:03:38 -04:00
Philipp Wiesemann
452ba51ebd Fixed typos in test program. 2014-08-20 22:51:56 +02:00
Philipp Wiesemann
3d122d4d7c Fixed not needed standard includes in test program. 2014-08-20 22:49:59 +02:00
Philipp Wiesemann
80ff7925b5 Fixed warnings about unused value in test program. 2014-08-20 22:47:07 +02:00
Philipp Wiesemann
2dc2c35b31 Fixed warnings about unused functions in test program. 2014-08-20 22:44:15 +02:00
Philipp Wiesemann
1283d4ef53 Fixed warnings about missing initializers in test program. 2014-08-20 22:40:56 +02:00
Ryan C. Gordon
9efa4ff286 Fixed the cmake-guided static analysis and use it by default.
The configure script fails on it on Mac OS X, now, for whatever reason.

Hopefully gets our static analysis buildslave running again!

--HG--
extra : rebase_source : 57f2c5512c5be3b7233132c9ec5d0bb1cbd86c6c
2014-08-20 01:21:45 -04:00
Sam Lantinga
13c9e77b67 Better check for __has_feature 2014-08-19 22:04:54 -07:00