From 751e733237eda440365d6300618d69982c4d32ed Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 23 Nov 2025 11:47:20 -0800
Subject: [PATCH] Removed hack for no panel fading when doing fast iteration
---
game/init.cpp | 5 +++++
screenlib/SDL_FrameBuf.cpp | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/game/init.cpp b/game/init.cpp
index c4a85b0f..1bcb0202 100644
--- a/game/init.cpp
+++ b/game/init.cpp
@@ -833,8 +833,13 @@ int DoInitializations(Uint32 window_flags)
/* Create the UI manager */
ui = new MaelstromUI(screen, prefs);
+#ifdef FAST_ITERATION
+ /* Fast transition between panels */
+ ui->SetPanelTransition(PANEL_TRANSITION_NONE);
+#else
/* Fade transition between panels */
ui->SetPanelTransition(PANEL_TRANSITION_FADE);
+#endif
/* -- Throw up our intro screen */
if (ui->GetPanelTransition() == PANEL_TRANSITION_FADE) {
diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp
index 9f72709e..5370ca57 100644
--- a/screenlib/SDL_FrameBuf.cpp
+++ b/screenlib/SDL_FrameBuf.cpp
@@ -218,9 +218,6 @@ FrameBuf::Update(void)
void
FrameBuf::Fade(void)
{
-#ifdef FAST_ITERATION
- return;
-#else
const int max = 32;
Uint8 value;
@@ -232,7 +229,6 @@ FrameBuf::Fade(void)
SDL_Delay(10);
}
faded = !faded;
-#endif
}
int