Sam Lantinga
e7cc03e0bd
Fixed Android build error on older SDK
2017-11-12 10:59:05 -08:00
Sam Lantinga
852e3a33bf
Fixed typo in comment
2017-11-11 17:21:47 -08:00
Sam Lantinga
5d91301861
Only include Intel intrinsics header on x86 and x64
2017-11-11 16:20:00 -08:00
Sam Lantinga
2f2d79f342
Replaced the intrinsics header with the single header that includes all intrinsics so we can use AVX, etc.
2017-11-10 14:22:21 -08:00
Alex Szpakowski
cf6ed4a80c
macOS: Fix an OS-generated warning printed to stdout on launch in bundled apps.
2017-11-09 22:24:09 -04:00
Sam Lantinga
43dc92f4e5
Back out the following commits which are causing Dota 2 Exclusive Fullscreen to fail on AMD-based Macs. The details of why this is being reverted are at: https://bugzilla.libsdl.org/show_bug.cgi?id=3949
...
Alex Szpakowski <slime73@gmail.com> 2017-07-12 21:28 -0300
macOS: Expose more display modes on retina screens. Fixes an issue found in BZFlag.
http://hg.libsdl.org/SDL/rev/1e26564c7288
Alex Szpakowski <slime73@gmail.com> 2017-07-12 21:32 -0300
Fix a potential crash in macOS 10.7 and earlier.
http://hg.libsdl.org/SDL/rev/424607440631
2017-11-08 14:17:23 -08:00
Brandon Schaefer
782af21dfb
Fixed bug 3943 - General SDL_HINT_VIDEO_DOUBLE_BUFFER hint support
2017-11-07 09:10:32 -08:00
Ryan C. Gordon
4541e18c18
mouse: remove assert for unimplemented platforms (thanks, tomwardio!).
...
Fixes Bugzilla #3946 .
2017-11-06 15:29:24 -05:00
Sam Lantinga
7fe2341284
Updated version to 2.0.8 since SDL_image depends on it
2017-11-05 01:17:24 -07:00
Sam Lantinga
384ce769bd
Fixed bug 3939 - Remove static vm_error and vm_event from SDL_x11modes.c
...
tomwardio
Remove static int vm_error and vm_event, use local variables instead.
This fixes unused variable errors when compiling with SDL_VIDEO_DRIVER_X11_XINERAMA undefined.
src/video/x11/SDL_x11modes.c:505:22: error: unused variable 'vm_error' [-Werror,-Wunused-variable]
src/video/x11/SDL_x11modes.c:505:12: error: unused variable 'vm_event' [-Werror,-Wunused-variable]
2017-11-04 22:06:40 -07:00
Sam Lantinga
e6cbe60b10
Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable
...
Sylvain
What about getting some return code instead of creating another native function.
2017-11-04 22:03:28 -07:00
Sam Lantinga
a429dc96f9
Updated version to 2.0.8 since SDL_image depends on it
2017-11-04 21:58:48 -07:00
Sam Lantinga
7190c9d143
Fixed compiling on Windows with HAVE_LIBC enabled
2017-11-04 18:01:03 -07:00
Sam Lantinga
5df8da777c
Fixed compiler warnings after uClibc code update
2017-11-04 17:39:28 -07:00
Sam Lantinga
4e9aab5884
Added SDL_fmod() and SDL_fmodf()
2017-11-04 17:35:03 -07:00
Sam Lantinga
fd9bdc8766
Updated math code from the uClibc 0.9.33 release
2017-11-04 15:53:19 -07:00
Sam Lantinga
554d129015
Added float versions of SDL's math functions
2017-11-04 15:34:14 -07:00
Sam Lantinga
96f6650fb6
Fixed using libunwind on iOS, where it's only available on the simulator (thanks Vit!)
2017-11-04 09:44:29 -07:00
Sam Lantinga
0d583faae9
Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable
...
We're going to push the manifest environment variables from the Java side instead of continually querying for them from the native side.
2017-11-04 09:37:29 -07:00
Sam Lantinga
bd363eb4e7
Fixed bug 3940 - Add support for EGL_SURFACE_TYPE
...
tomwardio
Add support to be able to set EGL_SURFACE_TYPE bits when creating an EGL config. This is usefule when wanting to create pixel buffer surfaces in custom video drivers.
2017-11-04 09:07:33 -07:00
Conn O'Griofa
5d4383cc0b
Raspberry Pi: fix ES 1/PVR support & autodetect Mesa driver
...
* The brcmGLESv2 vendor library also supports ES PVR/1 profiles
* Fallback to standard Mesa libraries if the VC4 driver is loaded
2017-11-04 09:04:19 -07:00
Conn O'Griofa
e33c3c0757
SDL_video: try to bootstrap KMSDRM before RPI video driver
...
Allow better coexistence between RPI's vendor libraries and VC4 mesa driver.
2017-11-04 09:03:20 -07:00
Sam Lantinga
2c6a874cc6
Android configure-based build fixes (thanks Vit!)
2017-11-04 09:00:40 -07:00
Johannes Bader
f607a8a0b8
Emscripten: use cursor hotspot
...
the cursor's hotspot simply wasn't translated to it's CSS equivalent, yet
see https://developer.mozilla.org/en-US/docs/Web/CSS/cursor?v=example#Syntax . no explicit hotspot if (0|0) for compatibility with Edge and IE, which indeed don't support custom hot spots
2017-11-04 11:16:49 +00:00
Sam Lantinga
904d01eba5
Make SDL fullscreen windows on Android actually fullscreen
2017-11-02 10:41:55 -07:00
Sam Lantinga
8dc14c58d8
Fixed bug 3935 - Not find joysticks if android run 24-48 days.
...
Alexander Orefkov
In src\joystick\android\SDL_sysjoystick.c in SDL_SYS_JoystickDetect when SDL_GetTicks return number grater 2147483648 (after 24.85 days uptime) SDL_TICKS_PASSED(SDL_GetTicks(), timeout) return FALSE and Android_JNI_PollInputDevices is never calling.
And in JoystickByDeviceId - when search for newly added joystic - after SDL_SYS_JoystickDetect item not reinitilized, and always stay NULL, cause return NULL instead of added joystick.
2017-11-02 08:48:14 -07:00
Sam Lantinga
9b9c3303cd
Fixed bug 3933 - Android, no need of the listener thread
...
Sylvain
A listener thread has been added to know when the native thread would end.
But now, it is more easy to only check that after the main function has returned. It's one thread less.
2017-11-02 08:46:14 -07:00
Sam Lantinga
bbee4d9fff
Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable
...
Sylvain
Some issue with this commit:
https://hg.libsdl.org/SDL/rev/4130b92b6be4
There is a memory allocation missing.
2017-11-01 19:19:21 -07:00
Sam Lantinga
b19a91d82d
Allow the activity to persist through connecting or disconnecting a keyboard
2017-11-01 18:41:11 -07:00
Sam Lantinga
80fbdd08d4
Moved the meta-data into the right section
2017-11-01 18:40:11 -07:00
Sam Lantinga
f1d9b98e83
Fixed bug 3926 - SDL_main export
...
e_pluschauskas
I noticed that after updating SDL to 2.0.6 my application now exports SDL_main.
At GitHub SDL mirror (branch 2.0.5) SDL_main prototyped as
extern C_LINKAGE int SDL_main(int argc, char *argv[]);
but at branch 2.0.6 prototype is
extern C_LINKAGE DECLSPEC int SDL_main(int argc, char *argv[]);
2017-11-01 17:41:25 -07:00
Sam Lantinga
4254c060fa
Fixed bug 3932 - Android, GetDisplayDPI release local reference
...
Sylvain
When writing JNI code, one has to make sure all local references are released otherwise the app end up crashing.
2017-11-01 17:30:02 -07:00
Sam Lantinga
42b997becf
Fixed building on non-Android platforms
2017-11-01 10:07:04 -07:00
Sam Lantinga
7565396bf0
Added controller mapping for Android TV remotes
...
Also fixed the back button on the remote exiting the application
2017-11-01 10:06:58 -07:00
Sam Lantinga
e9bd005f5d
Add SDL_GetDisplayDPI implementation on Android. (thanks Rachel!)
2017-10-31 13:49:59 -07:00
David Ludwig
d141e59bf5
WinRT: Move Windows::Foundation::Initialize to SDL2.dll, from SDL_main.
...
This allows C# UWP applications to use SDL2's SDL_WinRTRunApp function.
Kudos to Ethan Lee (flibitijibibo@flibitijibibo.com ) for the patch. Thanks!
2017-10-24 13:21:11 -04:00
Sam Lantinga
580856933d
Fixed Java string comparison with ""
2017-10-29 21:09:09 -07:00
Sam Lantinga
9d580dd242
Added the old ant Android build project structure
2017-10-28 12:11:25 -07:00
Brandon Schaefer
93cc24f934
Fixed bug 3902 - Add a specific KMSDRM hint for low latency video
...
--HG--
extra : amend_source : 533faafd8a7c6832c94728550b1ca10bab2a8018
2017-10-26 16:37:20 -07:00
Sam Lantinga
876a6b2319
Updated SDL iOS project for tvOS
2017-10-26 10:49:33 -07:00
Sam Lantinga
c1c8f0b7e9
Added missing keyinfotable.h
2017-10-26 10:42:14 -07:00
Sam Lantinga
156e5e86d1
android: Fix softkeyboard issue in SDL on Android.
2017-10-26 10:41:38 -07:00
Ryan C. Gordon
76eb51cec1
cocoa: Don't change the NSWindow background color.
...
Changing the background color causes the titlebar to blend against it on
modern macOS releases, making all SDL windows look wrong by default. This was
set to make the window not flash white before a GL context is ready, but we
can accomplish this in our window's view's drawRect implementation, too.
--HG--
extra : rebase_source : 65e74179013cefad065806b058cf02016a235fa9
2017-10-25 18:02:11 -04:00
Sam Lantinga
b985a686f1
Added the ability to set SDL hints from AndroidManifest.xml (thanks Rachel!)
...
This is especially useful for things like the accelerometer hint which could be needed before application main().
2017-10-24 00:17:07 -07:00
Sam Lantinga
6cba336d1c
Fixed crash if mSurface isn't set up when we pause the application
2017-10-24 00:04:40 -07:00
Sam Lantinga
f3da7593a5
Removed unneeded file automatically generated by Android Studio
2017-10-23 23:35:04 -07:00
Sam Lantinga
bb43a2bf53
Updated the minimum and target SDK versions in AndroidManifest.xml
2017-10-23 23:26:40 -07:00
Sam Lantinga
8216efa3bd
Updated Android build tools version, which bumped minimum deployment target to API 14
...
Also added native code to the Android gradle project, which allows using gradle or Android Studio to build the entire SDL application without a separate ndk-build step.
2017-10-23 23:23:47 -07:00
Sam Lantinga
3406fdde97
Fixed build with older Android SDK
2017-10-23 23:23:34 -07:00
Sam Lantinga
cea35f5176
Switched to new style gradle Android application build process
...
--HG--
rename : android-project/jni/src/Android.mk => android-project/app/jni/src/Android.mk
rename : android-project/src/org/libsdl/app/SDL.java => android-project/app/src/main/java/org/libsdl/app/SDL.java
rename : android-project/src/org/libsdl/app/SDLAudioManager.java => android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java
rename : android-project/src/org/libsdl/app/SDLControllerManager.java => android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java
2017-10-23 15:23:43 -07:00