Skip to content

Commit

Permalink
Try this now
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Nov 30, 2024
1 parent 976f173 commit 76ba2ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion GSE/Gui/ImGuiWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,13 @@ public void Dispose()

public void ToggleFullscreen()
{
#if GSE_ANDROID
const SDL_WindowFlags fullscreenFlag = SDL_WindowFlags.SDL_WINDOW_FULLSCREEN;
#else
const SDL_WindowFlags fullscreenFlag = SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP;
#endif
// TODO: how should failure be handled?
if (SDL_SetWindowFullscreen(SdlWindow, _isFullscreen ? 0 : (uint)SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP) != 0)
if (SDL_SetWindowFullscreen(SdlWindow, _isFullscreen ? 0 : (uint)fullscreenFlag) != 0)
{
return;
}
Expand Down
2 changes: 0 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@

<activity android:name="GSEActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:alwaysRetainTaskState="true"
android:launchMode="singleInstance"
android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
android:preferMinimalPostProcessing="true"
android:exported="true"
android:immersive="true"
android:screenOrientation="userLandscape"
android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.NoTitleBar.Fullscreen">
<item name="android:windowNoTitle">true</item>
<!-- Customize your theme here. -->
</style>
</resources>

0 comments on commit 76ba2ec

Please sign in to comment.