Commit Graph

  • f6a2ae6007 Faster blit colorkey or not, applied to bpp: 3->4 and 4->3 Sylvain Becker 2019-02-09 17:20:53 +01:00
  • 604b44f20f Fix wrong access and simplify Sylvain Becker 2019-02-08 17:15:30 +01:00
  • 5ed30f844d Some simplification of previous commit Sylvain Becker 2019-02-07 22:45:50 +01:00
  • 5fd228921c Faster blit with CopyAlpha, no ColorKey Applied to following formats: Sylvain Becker 2019-02-07 22:03:30 +01:00
  • 704e62bbf4 Code factorization of the pixel format permutation Sylvain Becker 2019-02-07 21:49:24 +01:00
  • 0a007a9bea Fix wrong comment Sylvain Becker 2019-02-07 18:52:49 +01:00
  • e5192384d0 Faster blit with no ColorKey Applied to following formats: Sylvain Becker 2019-02-07 18:51:14 +01:00
  • 7372295ec9 Faster blit when using No Alpha or Set Alpha, + ColorKey Applied to following formats: Sylvain Becker 2019-02-07 17:52:28 +01:00
  • bb9a9080dc Fix pointer warnings Sylvain Becker 2019-02-07 16:13:25 +01:00
  • 3543a44ae4 Faster blit when using CopyAlpha + ColorKey Applied to following formats: Sylvain Becker 2019-02-07 15:12:17 +01:00
  • 03cbac4040 Android/openslES: fix warnings, comment out un-used interface Sylvain Becker 2019-02-05 15:14:15 +01:00
  • 614c8aea20 Android/openslES: set number of buffers of DATALOCATOR to internal NUM_BUFFER If we increase NUM_BUFFER, Enqueue won't fail with SL_RESULT_BUFFER_INSUFFICIENT Sylvain Becker 2019-02-05 15:09:41 +01:00
  • bf823bf2dc Android/openslES: prevent to run out of buffers if Enqueue() fails. Sylvain Becker 2019-02-05 15:05:32 +01:00
  • 40781dfb15 opengles2: patched to compile. Ryan C. Gordon 2019-02-04 23:35:18 -05:00
  • b7504f311b opengles2: keep cached texturing state correct. Ryan C. Gordon 2019-02-04 23:32:28 -05:00
  • a609c03ac6 opengles1: keep cached texturing state correct. Ryan C. Gordon 2019-02-04 23:24:10 -05:00
  • 40a52ceef7 render: Fix OpenGL draw state cache for various points of texture binding. Ryan C. Gordon 2019-02-04 18:55:39 -05:00
  • 670f3d3327 Fixed bug 4484 - use SIMD aligned memory for SDL_Surface Sylvain Becker 2019-02-04 09:11:07 +01:00
  • 9292dc7ca1 Fix include path compilation Sylvain Becker 2019-02-04 08:43:37 +01:00
  • 9a98dcc516 Rename surface aligned memory flag to SDL_SIMD_ALIGNED Sylvain Becker 2019-02-04 08:34:24 +01:00
  • 65e07b3884 iOS/tvOS: fix support for SDL_GameControllerGetButton(controller, GUIDE) with MFi controllers (thanks Caleb!) Fixes bug #4463. Alex Szpakowski 2019-01-31 19:52:47 -04:00
  • e5d194e902 Add SDL_MEMALIGNED flag for SDL_Surface using aligned memory. Sylvain Becker 2019-01-31 11:45:31 +01:00
  • 7b8bac5958 Add fast paths in BlitNtoNKey Sylvain Becker 2019-01-30 22:50:20 +01:00
  • cd25c83aad Fix blit with blending (Blit_A) to RGB332 which has no palette Sylvain Becker 2019-01-30 17:16:08 +01:00
  • 5b07148f73 Fixed failing SDL_ConvertSurface() when blit has failed. Sylvain Becker 2019-01-30 16:36:47 +01:00
  • a052d81bdf Add explicit unsigned int and char types in (for bug 4290) Sylvain Becker 2019-01-30 15:31:07 +01:00
  • 1128d57316 Fixed bug 4290 - add fastpaths for format conversion in BlitNtoN Sylvain Becker 2019-01-30 15:23:33 +01:00
  • 3b4e369365 Emscripten: No need for Runtime. for dynCalls Alon Zakai 2019-01-29 12:21:22 +00:00
  • 53ead95e1d Emscripten: Avoid SDL2 in JS global scope After this fix, closure works with the LLVM wasm backend on SDL2. Alon Zakai 2019-01-29 12:19:36 +00:00
  • 6d89a7bc71 Emscripten: remove GLES_DeleteContext implementation It was calling glClear without a context. The issue it was trying to solve was actually that after destroying a window and creating a new one , the contents of the old window were preserved. This no longer happens since we resize the window to nothing on destroy. Charlie Birks 2019-01-29 12:19:32 +00:00
  • 04b1494cf8 Emscripten: resize canvas to 0x0 in DestroyWindow Closest we can get to actually destroying it Charlie Birks 2019-01-29 12:19:23 +00:00
  • d60546aaa8 Emscripten: don't zero the display mode before adding it Charlie Birks 2019-01-29 12:19:06 +00:00
  • 4a2888af10 Emscripten: use UTF8ToString instead of Pointer_stringify Charlie Birks 2019-01-29 12:19:03 +00:00
  • aacb1091df Emscripten: call emscripten_sample_gamepad_data Charlie Birks 2019-01-29 12:19:00 +00:00
  • 8dab9c956f Emscripten: Use set_canvas_element_size This will be needed for supporting multiple canvases and set_canvas_size is deprecated anyway. Charlie Birks 2019-01-29 12:18:56 +00:00
  • ed66a430c9 Emscripten: Do not consume mouseup event outside of the canvas kichikuou 2019-01-29 12:14:54 +00:00
  • 2838abb5b2 Emscripten: fix duplicate mousebuttonup/mousebuttondown events when touch events are disabled Sylvain Beucler 2019-01-29 12:14:44 +00:00
  • 1767d09187 Emscripten: use a fake size for external sizing check The check would fail if the canvas happened to be the correct size already. (#66, mentioned in #58) Charlie Birks 2019-01-29 12:14:41 +00:00
  • 80d690a2a0 Emscripten: reset fullscreen_window when leaving fullscreen If the browser left fullscreen mode by the user pressing ESC, the next call to SDL_SetWindowFullscreen(1) will fail as it thinks the window is already fullscreen. (#65) Charlie Birks 2019-01-29 12:14:33 +00:00
  • 82b2c849f0 Fixed bug 4024 - GameController error "Unexpected controller element" Sylvain Becker 2019-01-21 23:41:43 +01:00
  • adabfdc0c5 Revert SDL_gamecontrollerdb.h and sort_controllers.py from bug 4024 Sylvain Becker 2019-01-21 20:49:08 +01:00
  • d984f323fc Fixed bug 3827 - issue with MapRGB, palette and colorkey Sylvain Becker 2019-01-21 19:53:06 +01:00
  • 2bd26b8da8 Fixed bug 3827 - issue with MapRGB, palette and colorkey Sylvain Becker 2019-01-21 18:45:15 +01:00
  • 7b354dda76 Fixed compiler warning Sam Lantinga 2019-01-20 13:53:16 -08:00
  • 8ad4000ce2 Android: some typos Sylvain Becker 2019-01-20 22:17:41 +01:00
  • b9aa3768ac Android: automatically attach to the JVM non-SDL threads Sylvain Becker 2019-01-20 22:11:56 +01:00
  • 61827c6d1a Fixed compiler warning on Android Sam Lantinga 2019-01-20 12:02:12 -08:00
  • 07548602d6 Fixed bug 3657 - Color-key doesn't work when an alpha channel is present Sylvain Becker 2019-01-19 16:47:43 +01:00
  • 9d10c73853 Android: remove duplicate code in SDLGenericMotionListener_API24 and use parent method Sylvain Becker 2019-01-17 16:30:19 +01:00
  • 55838d8bd6 Android: remove another hard-coded constant for Samsung DeX (no op!) Sylvain Becker 2019-01-17 14:59:46 +01:00
  • 56f4a711e3 Android: minor change in the evaluation of SOURCE_CLASS_JOYSTICK (no op!) Sylvain Becker 2019-01-17 13:42:13 +01:00
  • 8f828a8e1b Android: remove hard-coded constant for Samsung DeX (no op!) Sylvain Becker 2019-01-17 12:25:19 +01:00
  • e5f8801f55 Android: prevent concurrency in Android_SetScreenResolution() when exiting by checking Android_Window validity Sylvain Becker 2019-01-17 11:05:05 +01:00
  • 6690a46941 Android: also update APP_PLATFORM to android-16 in Application.mk Sylvain Becker 2019-01-17 09:28:30 +01:00
  • ede0fc4f4c Fixed bug 4024 - remove trailing comma of Controller mappings because it reports an error "Unexpected controller element" Sylvain Becker 2019-01-16 14:03:35 +01:00
  • 8a19ff3e2d Android: add mutex protection to onNativeOrientationChanged Sylvain Becker 2019-01-16 10:48:28 +01:00
  • e994be5833 Android: move static variable isPaused/isPausing to SDL_VideoData structure Sylvain Becker 2019-01-16 10:31:51 +01:00
  • 291f6006a1 Android: merge SDLJoystickHandler_API12 and SDLJoystickHandler_API16 Sylvain Becker 2019-01-16 09:22:20 +01:00
  • a86754167c Android: remove trailing spaces Sylvain Becker 2019-01-16 09:12:31 +01:00
  • d86de288d4 Android: remove old code after Android-16 has been set as minimum requirement Sylvain Becker 2019-01-16 09:11:13 +01:00
  • 861a21f98b evdev: don't debug log on a BTN_TOUCH from a non-touch device. Ryan C. Gordon 2019-01-14 19:43:25 -05:00
  • 2755a505a3 evdev: Add touchscreen mouse emulation and pressure support (thanks, Zach!). Ryan C. Gordon 2019-01-14 19:36:54 -05:00
  • dc263450ff Android: create Pause/ResumeSem semaphore at higher level than CreateWindow() Sylvain Becker 2019-01-14 23:33:48 +01:00
  • 1b24b2eca5 Android/openslES: fix Pause/ResumeDevices when openslES is not used Sylvain Becker 2019-01-14 22:56:57 +01:00
  • ae41831e0d Android: minor, remove static attributes, move mIsSurfaceReady to SDLSurface Sylvain Becker 2019-01-14 21:34:12 +01:00
  • 647b1f6a6d Android/openslES: check for non NULL variable, some intialization. use the previous naming Sylvain Becker 2019-01-14 14:36:13 +01:00
  • 7b1cc441dd Android/openslES: start playing, after creating ressources Sylvain Becker 2019-01-14 14:31:06 +01:00
  • 955d87894b Android/openslES: set audio in paused/resumed state for Android event loop And also in "stopped" state before closing the device. Sylvain Becker 2019-01-14 12:33:29 +01:00
  • 59c8c7b684 Android/openslES: move a few static variables to SDL_PrivateAudioData structure Sylvain Becker 2019-01-14 10:58:57 +01:00
  • 5aeeaaab70 Android/openslES: register and use CloseDevice function. Sylvain Becker 2019-01-14 10:16:26 +01:00
  • 365fd9c602 Android/openslES: some space and indentation to match SDL conventions Sylvain Becker 2019-01-14 10:04:54 +01:00
  • 7dc92a7669 Initial Android OpenSL ES implementation, contributed by ANTA Sam Lantinga 2019-01-12 12:18:44 -08:00
  • fb8cb95fbc Fixed compiler warning Sam Lantinga 2019-01-12 12:12:43 -08:00
  • 390459d83e Updated minimum supported Android version to API 16, to match latest NDK toolchain Sam Lantinga 2019-01-12 12:11:06 -08:00
  • be991f3a78 Fixed bug 4453 - GLES / GLES2: first white renderer clear cmd is drawn as black Sylvain Becker 2019-01-12 13:34:03 +01:00
  • 7b42f03fd9 Android: move and group JNIEnv helper functions Sylvain Becker 2019-01-11 21:52:43 +01:00
  • 7f3478305f Android: change the way JNIEnv is retrieved Sylvain Becker 2019-01-11 21:42:52 +01:00
  • dc10d96cde Android: use the same naming for JNI env local variables Sylvain Becker 2019-01-11 15:36:16 +01:00
  • 3cfd907df7 Android: Audio thread is already setup for the JVM In 'src/thread/pthread/SDL_systhread.c' RunThread() calls first 'Android_JNI_SetupThread()' Sylvain Becker 2019-01-11 15:33:02 +01:00
  • 9d82f4e985 Android: use pthread_once for creating thread key 'mThreadKey' Sylvain Becker 2019-01-11 15:27:53 +01:00
  • 9a98e5afe1 Android: don't call Android_JNI_ThreadDestroyed() for Java SDLThread Sylvain Becker 2019-01-11 14:50:43 +01:00
  • 42e18bd0c2 Android: fix bad merge from previous commit Sylvain Becker 2019-01-11 14:25:32 +01:00
  • b44a7aea8f Android: fix prototype of Android_JNI_InitTouch Sylvain Becker 2019-01-10 21:49:00 +01:00
  • 7a1d1baefc Android: add name for Touch devices and simplification, from bug 3958 Sylvain Becker 2019-01-10 21:40:57 +01:00
  • d23c2f07e3 Fixed bug 3930 - Android, set thread priorities and names Sylvain Becker 2019-01-10 18:05:56 +01:00
  • 0e0e0272b8 Android: remove deprecated PixelFormat in surfaceChanged() Sylvain Becker 2019-01-10 16:04:52 +01:00
  • 5c11e5ef92 Android: some simplification, don't need mExitCalledFromJava Sylvain Becker 2019-01-10 15:48:43 +01:00
  • 66fbfe1d00 Android: nativeQuit for SDLActivity thread Sylvain Becker 2019-01-10 15:43:07 +01:00
  • dad8161103 Android: only send Quit event to SDLThread if it's not already terminated Sylvain Becker 2019-01-10 15:35:46 +01:00
  • 61d37de099 Android: un-needed transition to Pause state. Sylvain Becker 2019-01-10 15:29:37 +01:00
  • 8dd915507e Android: prevent a dummy error message sending SDL_DISPLAYEVENT_ORIENTATION Sylvain Becker 2019-01-09 23:19:26 +01:00
  • 02f292eb13 Android: add some SetError for Android_SetWindowFullscreen Sylvain Becker 2019-01-09 22:49:49 +01:00
  • 68c0e69f0a Android: native_window validity is guaranteed between surfaceCreated and Destroyed Sylvain Becker 2019-01-09 22:41:52 +01:00
  • 1803944bb2 Android: concurrency issue for Android_SetWindowFullscreen() Sylvain Becker 2019-01-09 15:18:41 +01:00
  • 59df6d6b13 Android: don't allow multiple instance of SDLActivity Sylvain Becker 2019-01-07 17:06:50 +01:00
  • cfe2924d07 Android: some robustness when quitting application from onDestroy() Sylvain Becker 2019-01-07 11:35:31 +01:00
  • 462e62e154 Android: better fix for bug 3186. Run those commands from SDL thread. Sylvain Becker 2019-01-06 20:25:54 +01:00
  • 9f23d1815f Android: allow multiple calls to nativeResume() Sylvain Becker 2019-01-06 17:35:42 +01:00
  • 911f1d3e67 Android: remove SURFACE_TYPE_GPU, deprecated in API level 5. Sylvain Becker 2019-01-05 22:49:50 +01:00
  • e4f558a50c Android: un-needed check of "isPausing" and minor typos Sylvain Becker 2019-01-05 22:46:52 +01:00