Skip to content
Permalink
main

Commits on Apr 21, 2021

  1. KMSDRM: Only use OpenBSD-specific defines on pre-6.9 releases

    Cacodemon345 authored and slouken committed Apr 21, 2021

Commits on Apr 20, 2021

  1. Add SDL_SetWindowAlwaysOnTop()

    directmusic authored and slouken committed Apr 20, 2021
  2. Android: prevent error EGL_BAD_DISPLAY while getting egl version with…

    …out display
    
    There is an error "E libEGL  : validate_display:91 error 3008 (EGL_BAD_DISPLAY)"
    that occurs when calling "eglQueryString(display, EGL_VERSION)", with EGL_NO_DISPLAY.
    
    Khronos says "EGL_BAD_DISPLAY is generated if display is not an EGL display connection, unless display is EGL_NO_DISPLAY and name is EGL_EXTENSIONS."
    but this was added in SDL with "EGL 1.5 allows querying for client version"
    ( 56363eb )
    
    In fact:
    - it actually doesn't work on Android that has 1.5 egl client
    - it works on desktop X11 (using SDL_VIDEO_X11_FORCE_EGL=1)
    
    The commit moves the version call where it's used, eg inside the "if (platform) {"
    and checks that "eglGetPlatformDisplay" has been correctly loaded.
    1bsyl committed Apr 20, 2021
  3. filesystem: Better OpenBSD support for SDL_GetBasePath().

    Fixes #3752.
    icculus committed Apr 20, 2021

Commits on Apr 19, 2021

  1. Fix keymap updating for X11 backend

    renom authored and icculus committed Apr 19, 2021
  2. wayland: Implement GetDisplayDPI

    flibitijibibo authored and icculus committed Apr 19, 2021
  3. wayland: Implement GetDisplayBounds

    flibitijibibo authored and icculus committed Apr 19, 2021

Commits on Apr 17, 2021

  1. wayland: Implement basic window move events via wl_surface_listener.

    This unearthed an unspeakably large amount of bugs in the wl_output enumerator,
    notably the fact that the wl_output user pointer was to temporary memory!
    This was "fixed" in e862856, and was then pointed out as a leak in 4183211,
    which was undone in d9ba204. The busted fix was correct that the malloc was an
    issue, but wrong about _why_; SDL_AddVideoDisplay copies by value and does not
    reuse the pointer, so generally you want your VideoDisplay to be on the stack,
    but of course the callbacks don't allow that, so a malloc was a workaround. But
    we can do better and just host our temporary display inside WaylandOutputData
    because that will be persistent while also not leaking.
    
    Wait, wasn't I talking about move events? Right, that: wl_surface_listener does
    at least give us the ability to know what monitor we're on, even though we have
    no idea where we are on the monitor. All we need to do is check the wl_output
    against the display list and then push a move event that both indicates the
    correct display while also not being _too_ much of a lie (but enough of a lie
    to where our event doesn't get discarded as "undefined" or whatever). The index
    check for the video display is what spawned the great nightmare you see before
    you; aside from the bugfix this is actually a really basic patch.
    flibitijibibo authored and slouken committed Apr 17, 2021

Commits on Apr 16, 2021

  1. Android: add AAudio entry in CMake SDL_config

    1bsyl committed Apr 16, 2021
  2. Android: enable audio driver OpenSLES when building with CMake

    1bsyl committed Apr 16, 2021

Commits on Apr 15, 2021

  1. AAudio: add aaudio pause/resume function to android events loop

    1bsyl committed Apr 15, 2021
  2. Android: OpenSLES, explicitly initialise the global variable 'bqPlaye…

    …rPlay',
    
    it may be read even if OpenSLES back-end hasn't been intialized
    1bsyl committed Apr 15, 2021

Commits on Apr 14, 2021

  1. bump minimum required autoconf version and revise autogen.sh

    sezero committed Apr 14, 2021
  2. rename PKG_CONFIG_LIBS_PRIV to PKGCONFIG_LIBS_PRIV

    i.e.: do not steal PKG_CONFIG namespace.
    sezero committed Apr 14, 2021
  3. ran configure.ac through autoupdate-2.69

    generated configure script is practically the same except for whitespace
    changes.
    sezero committed Apr 14, 2021
  4. Cleanup Linux joystick code

    slouken committed Apr 14, 2021

Commits on Apr 13, 2021

  1. Support key composing (i.e. dead keys) in Wayland driver (#4296)

    Based on an old patch by chw from the old Bugzilla issue tracker.
    
    Authored-by: chw
    
    Co-authored-by: Sam Lantinga <slouken@libsdl.org>
    lacc97 and slouken committed Apr 13, 2021
  2. Fixed Xbox controller when using the default Linux gamepad mapping

    Tested with the Xbox Series X controller and the xow driver
    slouken committed Apr 13, 2021
  3. joystick: linux: Avoid checking for gamepad mapping each frame

    The information whether a specific joystick can be used as a gamepad is
    not going to change every frame, so we can cache the result into a
    variable.
    
    This dramatically reduces the performance impact of SDL2 on small
    embedded devices, since the code path that is now avoided was quite
    heavy.
    
    Fixes #4229.
    
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    pcercuei authored and slouken committed Apr 13, 2021
  4. cmake: Weak link with CoreHaptics

    Add link to CoreHaptics so we can compile against latest iOS SDKs.
    okuoku authored and slouken committed Apr 13, 2021
  5. Adding checks to see if any ASAN flags are set, if so then we set(HAV…

    …E_ASAN ON) so the infomartion output will properly list ASAN as on.
    schkillten authored and slouken committed Apr 13, 2021
  6. Adding messages to output CMAKE_C_FLAGS_DEBUG and CMAKE_CXX_FLAGS_DEB…

    …UG, this way when using Debug builds you can see which debug flags are set
    schkillten authored and slouken committed Apr 13, 2021
  7. Moving ASAN macros and calls to macros above the information output s…

    …ection so we can display ASAN information properly.
    schkillten authored and slouken committed Apr 13, 2021
  8. wayland: Minor whitespace fix

    flibitijibibo authored and slouken committed Apr 13, 2021
  9. KMSDRM: Report correct window position to the application

    Cacodemon345 authored and slouken committed Apr 13, 2021
  10. wayland: Set the keymap in keyboard_handle_modifiers

    flibitijibibo authored and slouken committed Apr 13, 2021
Older