Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit a026a9c

Browse files
committed
Merge commit '92fe3b19c868ad062c323dde2cfc9d8b4bfdd785'
2 parents 70de4de + 92fe3b1 commit a026a9c

34 files changed

+374
-160
lines changed

CMakeLists.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ endif()
8787
# See docs/release_checklist.md
8888
set(SDL_MAJOR_VERSION 2)
8989
set(SDL_MINOR_VERSION 30)
90-
set(SDL_MICRO_VERSION 3)
90+
set(SDL_MICRO_VERSION 4)
9191
set(SDL_VERSION "${SDL_MAJOR_VERSION}.${SDL_MINOR_VERSION}.${SDL_MICRO_VERSION}")
9292

9393
# Set defaults preventing destination file conflicts
@@ -241,7 +241,7 @@ endif()
241241
if(UNIX OR MINGW OR MSYS OR (USE_CLANG AND NOT WINDOWS) OR VITA OR PSP OR PS2 OR N3DS)
242242
set(OPT_DEF_LIBC ON)
243243
endif()
244-
if(WINDOWS OR IOS OR TVOS)
244+
if(WINDOWS OR DARWIN OR MACOSX OR IOS OR TVOS)
245245
set(SDL_SYSTEM_ICONV_DEFAULT OFF)
246246
else()
247247
set(SDL_SYSTEM_ICONV_DEFAULT ON)
@@ -1810,13 +1810,11 @@ elseif(WINDOWS)
18101810
check_include_file(d3d9.h HAVE_D3D_H)
18111811
check_include_file(d3d11_1.h HAVE_D3D11_H)
18121812
check_c_source_compiles("
1813-
#include <winsdkver.h>
1814-
#include <sdkddkver.h>
18151813
#include <d3d12.h>
1814+
#include <d3d12sdklayers.h>
18161815
ID3D12Device1 *device;
1817-
#if WDK_NTDDI_VERSION > 0x0A000008
1818-
int main(int argc, char **argv) { return 0; }
1819-
#endif" HAVE_D3D12_H)
1816+
int main(int argc, char **argv) {return 0; }
1817+
" HAVE_D3D12_H)
18201818
check_include_file(ddraw.h HAVE_DDRAW_H)
18211819
check_include_file(dsound.h HAVE_DSOUND_H)
18221820
check_include_file(dinput.h HAVE_DINPUT_H)

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ WAYLAND_SCANNER_CODE_MODE = @WAYLAND_SCANNER_CODE_MODE@
5252

5353
INSTALL_SDL2_CONFIG = @INSTALL_SDL2_CONFIG@
5454

55-
SRC_DIST = *.md *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.ac docs include Makefile.* mingw sdl2-config.cmake.in sdl2-config-version.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in SDL2Config.cmake.in src test VisualC VisualC-WinRT Xcode Xcode-iOS wayland-protocols
55+
SRC_DIST = *.md *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.ac docs include Makefile.* mingw sdl2-config.cmake.in sdl2-config-version.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in SDL2Config.cmake.in src test VisualC VisualC-GDK VisualC-WinRT Xcode Xcode-iOS wayland-protocols
5656
GEN_DIST = SDL2.spec
5757

5858
ifneq ($V,1)

Makefile.os2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LIBNAME = SDL2
1616
MAJOR_VERSION = 2
1717
MINOR_VERSION = 30
18-
MICRO_VERSION = 3
18+
MICRO_VERSION = 4
1919
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
2020
DESCRIPTION = Simple DirectMedia Layer 2
2121

Makefile.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
LIBNAME = SDL2
77
MAJOR_VERSION = 2
88
MINOR_VERSION = 30
9-
MICRO_VERSION = 3
9+
MICRO_VERSION = 4
1010
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
1111

1212
LIBHOME = .

Xcode/SDL/Info-Framework.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
<key>CFBundlePackageType</key>
2020
<string>FMWK</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>2.30.3</string>
22+
<string>2.30.4</string>
2323
<key>CFBundleSignature</key>
2424
<string>SDLX</string>
2525
<key>CFBundleVersion</key>
26-
<string>2.30.3</string>
26+
<string>2.30.4</string>
2727
</dict>
2828
</plist>

Xcode/SDL/SDL.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9729,7 +9729,7 @@
97299729
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
97309730
DEPLOYMENT_POSTPROCESSING = YES;
97319731
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
9732-
DYLIB_CURRENT_VERSION = 3001.3.0;
9732+
DYLIB_CURRENT_VERSION = 3001.4.0;
97339733
DYLIB_INSTALL_NAME_BASE = "@rpath";
97349734
ENABLE_STRICT_OBJC_MSGSEND = YES;
97359735
GCC_ALTIVEC_EXTENSIONS = YES;
@@ -9770,7 +9770,7 @@
97709770
isa = XCBuildConfiguration;
97719771
buildSettings = {
97729772
CLANG_LINK_OBJC_RUNTIME = NO;
9773-
MARKETING_VERSION = 2.30.3;
9773+
MARKETING_VERSION = 2.30.4;
97749774
OTHER_LDFLAGS = "-liconv";
97759775
};
97769776
name = Release;
@@ -9814,7 +9814,7 @@
98149814
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
98159815
DEBUG_INFORMATION_FORMAT = dwarf;
98169816
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
9817-
DYLIB_CURRENT_VERSION = 3001.3.0;
9817+
DYLIB_CURRENT_VERSION = 3001.4.0;
98189818
DYLIB_INSTALL_NAME_BASE = "@rpath";
98199819
ENABLE_STRICT_OBJC_MSGSEND = YES;
98209820
ENABLE_TESTABILITY = YES;
@@ -9856,7 +9856,7 @@
98569856
isa = XCBuildConfiguration;
98579857
buildSettings = {
98589858
CLANG_LINK_OBJC_RUNTIME = NO;
9859-
MARKETING_VERSION = 2.30.3;
9859+
MARKETING_VERSION = 2.30.4;
98609860
OTHER_LDFLAGS = "-liconv";
98619861
};
98629862
name = Debug;
@@ -10063,7 +10063,7 @@
1006310063
DEFINES_MODULE = YES;
1006410064
DEVELOPMENT_TEAM = "";
1006510065
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
10066-
DYLIB_CURRENT_VERSION = 3001.3.0;
10066+
DYLIB_CURRENT_VERSION = 3001.4.0;
1006710067
DYLIB_INSTALL_NAME_BASE = "@rpath";
1006810068
GCC_C_LANGUAGE_STANDARD = gnu11;
1006910069
GCC_DYNAMIC_NO_PIC = NO;
@@ -10115,7 +10115,7 @@
1011510115
DEFINES_MODULE = YES;
1011610116
DEVELOPMENT_TEAM = "";
1011710117
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
10118-
DYLIB_CURRENT_VERSION = 3001.3.0;
10118+
DYLIB_CURRENT_VERSION = 3001.4.0;
1011910119
DYLIB_INSTALL_NAME_BASE = "@rpath";
1012010120
ENABLE_NS_ASSERTIONS = NO;
1012110121
GCC_C_LANGUAGE_STANDARD = gnu11;

Xcode/SDL/pkg-support/SDL.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Title SDL 2.30.3
1+
Title SDL 2.30.4
22
Version 1
33
Description SDL Library for Mac OS X (http://www.libsdl.org)
44
DefaultLocation /Library/Frameworks

android-project/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<application android:label="@string/app_name"
6363
android:icon="@mipmap/ic_launcher"
6464
android:allowBackup="true"
65-
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
65+
android:theme="@style/AppTheme"
6666
android:hardwareAccelerated="true" >
6767

6868
<!-- Example of setting SDL hints from AndroidManifest.xml:

android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
6161
private static final String TAG = "SDL";
6262
private static final int SDL_MAJOR_VERSION = 2;
6363
private static final int SDL_MINOR_VERSION = 30;
64-
private static final int SDL_MICRO_VERSION = 3;
64+
private static final int SDL_MICRO_VERSION = 4;
6565
/*
6666
// Display InputType.SOURCE/CLASS of events and devices
6767
//
@@ -995,8 +995,8 @@ public void setOrientationBis(int w, int h, boolean resizable, String hint)
995995
/* No valid hint, nothing is explicitly allowed */
996996
if (!is_portrait_allowed && !is_landscape_allowed) {
997997
if (resizable) {
998-
/* All orientations are allowed */
999-
req = ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR;
998+
/* All orientations are allowed, respecting user orientation lock setting */
999+
req = ActivityInfo.SCREEN_ORIENTATION_FULL_USER;
10001000
} else {
10011001
/* Fixed window and nothing specified. Get orientation from w/h of created window */
10021002
req = (w > h ? ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
@@ -1005,8 +1005,8 @@ public void setOrientationBis(int w, int h, boolean resizable, String hint)
10051005
/* At least one orientation is allowed */
10061006
if (resizable) {
10071007
if (is_portrait_allowed && is_landscape_allowed) {
1008-
/* hint allows both landscape and portrait, promote to full sensor */
1009-
req = ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR;
1008+
/* hint allows both landscape and portrait, promote to full user */
1009+
req = ActivityInfo.SCREEN_ORIENTATION_FULL_USER;
10101010
} else {
10111011
/* Use the only one allowed "orientation" */
10121012
req = (is_landscape_allowed ? orientation_landscape : orientation_portrait);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<resources>
2-
33
<!-- Base application theme. -->
4-
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
4+
<style name="AppTheme" parent="android:Theme.NoTitleBar.Fullscreen">
55
<!-- Customize your theme here. -->
66
</style>
7-
87
</resources>

0 commit comments

Comments
 (0)