Skip to content

Commit

Permalink
Update to SDL2 2.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Feb 8, 2025
1 parent 3ff0ee1 commit 348c823
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 3rdParty/SDL2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(SDL_TEST_ENABLED_BY_DEFAULT OFF)
include(functions/FetchContent_ExcludeFromAll_backport)
include(FetchContent)
FetchContent_Declare(SDL2
URL https://github.com/libsdl-org/SDL/releases/download/release-2.30.12/SDL2-2.30.12.tar.gz
URL_HASH SHA256=ac356ea55e8b9dd0b2d1fa27da40ef7e238267ccf9324704850d5d47375b48ea
URL https://github.com/libsdl-org/SDL/releases/download/release-2.32.0/SDL2-2.32.0.tar.gz
URL_HASH SHA256=f5c2b52498785858f3de1e2996eba3c1b805d08fe168a47ea527c7fc339072d0
)
FetchContent_MakeAvailable_ExcludeFromAll(SDL2)
2 changes: 1 addition & 1 deletion Packaging/windows/mingw-prep.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

SDLDEV_VERS=2.30.12
SDLDEV_VERS=2.32.0
SODIUM_VERS=1.0.20

# exit when any command fails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
public class SDLActivity extends Activity implements View.OnSystemUiVisibilityChangeListener {
private static final String TAG = "SDL";
private static final int SDL_MAJOR_VERSION = 2;
private static final int SDL_MINOR_VERSION = 30;
private static final int SDL_MICRO_VERSION = 12;
private static final int SDL_MINOR_VERSION = 32;
private static final int SDL_MICRO_VERSION = 0;
/*
// Display InputType.SOURCE/CLASS of events and devices
//
Expand Down Expand Up @@ -311,7 +311,7 @@ public static void initialize() {
mNextNativeState = NativeState.INIT;
mCurrentNativeState = NativeState.INIT;
}

protected SDLSurface createSDLSurface(Context context) {
return new SDLSurface(context);
}
Expand Down Expand Up @@ -790,6 +790,9 @@ public void handleMessage(Message msg) {
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
SDLActivity.mFullscreenModeActive = false;
}
if (Build.VERSION.SDK_INT >= 28 /* Android 9 (Pie) */) {
window.getAttributes().layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
}
}
} else {
Log.e(TAG, "error handling message, getContext() returned no Activity");
Expand Down
2 changes: 1 addition & 1 deletion tools/update_sdl_android_project.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

SDL_BASE=https://raw.githubusercontent.com/libsdl-org/SDL/release-2.30.12
SDL_BASE=https://raw.githubusercontent.com/libsdl-org/SDL/release-2.32.0
FILES=(
HIDDevice.java
HIDDeviceBLESteamController.java
Expand Down

0 comments on commit 348c823

Please sign in to comment.