Ryan C. Gordon
b79832ba11
cocoa: Cut and paste from HTML strikes again!
2020-10-08 21:11:09 -04:00
Ozkan Sezer
19aaa2944d
Fix https://bugzilla.libsdl.org/show_bug.cgi?id=5306
...
(Also see: https://bugzilla.libsdl.org/show_bug.cgi?id=4822 )
Building the current tree against 10.8 SDK, clang emits the following warning:
src/video/cocoa/SDL_cocoawindow.m:1846:27: warning: instance method '-isOperatingSystemAtLeastVersion:' not found (return type defaults to 'id') [-Wobjc-method-access]
![processInfo isOperatingSystemAtLeastVersion:version]) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h:20:12: note: receiver is instance of class declared here
@interface NSProcessInfo : NSObject {
^
1 warning generated.
isOperatingSystemAtLeastVersion is an 10.10 thing.
2020-10-09 04:00:00 +03:00
Ozkan Sezer
69fbd60d25
Fix https://bugzilla.libsdl.org/show_bug.cgi?id=4877#c2
...
loadNibNamed:owner:topLevelObjects is available on 10.8 and newer.
There is an issue report here about an app failing to function on
10.7 and earlier: https://discourse.libsdl.org/t/28179
2020-10-09 04:00:00 +03:00
Sam Lantinga
bd14f2676c
Removed unused variable
2020-10-08 16:58:34 -07:00
Ozkan Sezer
d86a746542
SDL_video.c: fix whitespace
2020-10-09 02:55:00 +03:00
Sam Lantinga
76980e30f2
Added events for dynamically connecting and disconnecting displays, with an iOS implementation
2020-10-08 16:42:20 -07:00
Sam Lantinga
cd703b5628
Fixed whitespace
2020-10-08 16:41:48 -07:00
Ozkan Sezer
54bb9aaccb
k_rem_pio2.c: fix typo in second memset(): iq, not q. fixes bug #5309 .
2020-10-08 11:51:02 +03:00
Ryan C. Gordon
061256a3b3
metal: Clear the framebuffer if presenting without any other operations.
2020-10-07 14:45:24 -04:00
Ryan C. Gordon
003a16980c
wav: Make sure the data size is a multiple of blockalign, not an exact match.
...
I _think_ this is a right thing to do; it fixes a .wav file I have here that
has blockalign==2 when channels==2 and bitspersample==16, which otherwise
would fail.
2020-10-06 11:07:50 -04:00
Ryan C. Gordon
4627426994
url: WinRT actually works now (and has been tested, hooray!).
2020-10-06 00:42:17 -04:00
Ryan C. Gordon
fc05a696ad
url: Attempt #23235 at WinRT support...
2020-10-05 18:08:58 -04:00
Ryan C. Gordon
02addf135d
url: Another attempt at WinRT implementation.
2020-10-05 18:01:47 -04:00
Ozkan Sezer
1f4b5d54ca
windows/SDL_syslocale.c: make it build against older SDKs.
2020-10-06 00:20:20 +03:00
Ryan C. Gordon
7bec9df11a
url: Add to Xcode project files, iOS/mac fixes.
2020-10-05 16:10:10 -04:00
Ryan C. Gordon
57e3003d3f
url: Attempt at WinRT support.
2020-10-05 15:47:47 -04:00
Ryan C. Gordon
566479c8ef
url: ShellExecuteW returns an HINSTANCE, so deal with that more correctly.
2020-10-05 15:37:37 -04:00
Ryan C. Gordon
ee56090d3d
url: Cleanups and compiler warning fixes.
2020-10-05 15:03:44 -04:00
Ryan C. Gordon
cc158f2983
url: removed "extern" from function declaration.
2020-10-05 14:36:37 -04:00
Ryan C. Gordon
a3802cc533
url: Patched to compile on C89 compilers.
2020-10-05 14:30:33 -04:00
Ryan C. Gordon
0099e38a9a
url: More win32 fixes.
2020-10-05 14:21:03 -04:00
Ryan C. Gordon
1f4fecc5c1
url: Patched to compile on Windows.
2020-10-05 14:07:32 -04:00
Ryan C. Gordon
777d0f19f8
url: patched to compile on macOS.
2020-10-05 14:06:25 -04:00
Ryan C. Gordon
d068d05aa5
url: Make sure Haiku's C++ implementation is flagged as 'extern "C"'
2020-10-05 14:01:08 -04:00
Ryan C. Gordon
bf9fcb539a
url: The function is "SDL_Unsupported" not "SDL_Unimplemented"
2020-10-05 14:00:08 -04:00
Ryan C. Gordon
2d82cf78e1
url: put the Android bits in core/android
2020-10-05 13:59:03 -04:00
Ryan C. Gordon
efd665e2c7
Backed out changeset a43cb4e54949
...
Trying this a different way.
2020-10-05 13:56:45 -04:00
Ryan C. Gordon
913aa610b5
url: Include SDL_misc.h to get public function declaration.
2020-10-05 13:53:15 -04:00
Ryan C. Gordon
5f68812249
url: patched to compile on Android.
2020-10-05 13:52:52 -04:00
Ryan C. Gordon
84f1b95008
url: fixed wrong include.
2020-10-05 13:39:39 -04:00
Ryan C. Gordon
77c9d73b63
Removed SDL_AndroidOpenURL, added SDL_OpenURL.
...
Still needs to be wired into Xcode and Visual Studio projects.
2020-10-05 11:30:33 -04:00
Sylvain Becker
cd6670bff3
SDL_Surface refcount: fix memory leak when blitting between stack'ed surfaces
...
(see bug 5226)
2020-10-02 10:48:27 +02:00
Ozkan Sezer
883509fc84
ran gendynapi.pl after new (android-only) api additions.
2020-10-01 17:01:00 +03:00
Sylvain Becker
dd55bfe89c
Android: add helper function to open an URL/URI (see bug 2783)
2020-10-01 14:41:09 +02:00
Sam Lantinga
45c644cc99
Added support for the MOGA XP5-X Plus
2020-09-28 21:19:45 -07:00
Manuel Alfayate Corchete
78c274cb5d
kmsdrm: merge patches from Ozkan Sezer for removing c-99'isms and raising libgbm version reqeriments.
2020-09-26 19:18:09 +02:00
Sylvain Becker
955f3184f9
Fixed bug 5239 - Play audio on Android while backgrounded (Thanks Superfury)
...
Add hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO not to pause audio when
the app goes to background.
(It requires SDL_ANDROID_BLOCK_ON_PAUSE as "Non blocking")
2020-09-25 10:14:42 +02:00
Ryan C. Gordon
7ef188a1fb
jack: Fixed memory leak on device close.
2020-09-19 14:01:57 -04:00
Cameron Gutman
9a769da04a
X11: Remove our X11 error callback in X11_DeleteDevice()
...
If we don't remove it, we will infinitely recurse if X11_CreateDevice() is
called again and orig_x11_errhandler becomes X11_SafetyNetErrHandler().
2020-09-07 20:10:50 -07:00
Manuel Alfayate Corchete
9c342e76dd
kmsdrm: merge heap buffer overflow and cursor creation patches from meyraud705.
2020-09-13 21:41:10 +02:00
Manuel Alfayate Corchete
0cb9bfa502
kmsdrm: less excessive error checkhing
2020-09-12 15:58:47 +02:00
Manuel Alfayate Corchete
5bed30dd61
kmsdrm: also do pending modeseting in SwapWindowDoubleBuffered().
2020-09-12 04:56:55 +02:00
Manuel Alfayate Corchete
9e9227add3
kmsdrm: reimplement modesetting for fullscreen window scaling and AR-correction.
2020-09-12 04:52:56 +02:00
Manuel Alfayate Corchete
4575c6942a
kmsdrm: delete ununsed variable.
2020-09-12 02:36:02 +02:00
Manuel Alfayate Corchete
01b0cf1c90
Backed out changeset 4a45d1a30d25
...
kmsdrm: Fake KMSDRM_SetDisplayMode() is needed for some programs after all.
2020-09-12 00:47:00 +02:00
Manuel Alfayate Corchete
7b67654872
kmsdrm: don't fool SDL into thinking that changing the physical videomode is done.
2020-09-12 00:16:08 +02:00
Manuel Alfayate Corchete
a6d182d326
kmsdrm: no need to reconnect/reactivate things in SwapWindowDoubleBuffered().
2020-09-11 23:47:26 +02:00
Manuel Alfayate Corchete
47e2d0304e
kmsdrm: greatly improve comments in SwapBuffersFenced() for future reference.
2020-09-10 23:26:02 +02:00
Ryan C. Gordon
3c6004feb7
kmsdrm: Choose how to swap buffers based on EGL extension availability.
2020-09-10 15:07:23 -04:00
Ryan C. Gordon
c7e761f872
kmsdrm: Patched to compile if EGL headers lack EGL_ANDROID_native_fence_sync.
2020-09-10 15:05:55 -04:00