From 520cd30cba3b0b1ea91b32c60bdac42b788c8b55 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 19 Feb 2026 00:55:16 +0100 Subject: [PATCH 1/2] Fix #26057: Infogrames logo is taken off the screen before it reaches the bottom --- distribution/changelog.txt | 1 + src/openrct2/scenes/intro/IntroScene.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index aceabb4f5a..c8ffb7ab05 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -17,6 +17,7 @@ - Fix: [#25978] Frozen peeps start clapping when the scenario is won. - Fix: [#25999] Scenery picker tool does not pick the tertiary colour of large scenery correctly. - Fix: [#26037] Selecting elements in the tile inspector list and changing all tiles of a track piece does not redraw correctly. +- Fix: [#26057] In the scrolling intro, the Infogrames logo is taken off the screen before it reaches the bottom (original bug). 0.4.31 (2026-02-01) ------------------------------------------------------------------------ diff --git a/src/openrct2/scenes/intro/IntroScene.cpp b/src/openrct2/scenes/intro/IntroScene.cpp index 6970d5feb8..b9c5f9fe5b 100644 --- a/src/openrct2/scenes/intro/IntroScene.cpp +++ b/src/openrct2/scenes/intro/IntroScene.cpp @@ -123,8 +123,8 @@ namespace OpenRCT2 // Move the Infogrames logo down _introStateCounter += 5; - // Check if logo is off the screen...ish - if (_introStateCounter > ContextGetHeight() - 120) + // Check if logo is off the screen + if (_introStateCounter > ContextGetHeight()) { _introStateCounter = -116; _introState = IntroState::DeveloperBegin; From a52380b325eb5e00ec056fe7b8ab91a874770d1e Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 19 Feb 2026 01:10:46 +0100 Subject: [PATCH 2/2] Create constants for some stuff in IntroScene.cpp --- src/openrct2/SpriteIds.h | 14 ----- src/openrct2/scenes/intro/IntroScene.cpp | 70 +++++++++++++++--------- 2 files changed, 45 insertions(+), 39 deletions(-) diff --git a/src/openrct2/SpriteIds.h b/src/openrct2/SpriteIds.h index 26f4f8acbb..afd6abff2e 100644 --- a/src/openrct2/SpriteIds.h +++ b/src/openrct2/SpriteIds.h @@ -927,20 +927,6 @@ enum : ImageIndex SPR_MENU_LOGO = 23212, SPR_CREDITS_LOGO_SMALL = 23213, SPR_CREDITS_CHRIS_SAWYER_SMALL = 23214, - SPR_INTRO_CHRIS_SAWYER_00 = 23215, - SPR_INTRO_CHRIS_SAWYER_10 = SPR_INTRO_CHRIS_SAWYER_00 + 1, - SPR_INTRO_LOGO_00 = 23218, - SPR_INTRO_LOGO_10 = SPR_INTRO_LOGO_00 + 1, - SPR_INTRO_LOGO_20 = SPR_INTRO_LOGO_00 + 2, - SPR_INTRO_LOGO_01 = SPR_INTRO_LOGO_00 + 3, - SPR_INTRO_LOGO_11 = SPR_INTRO_LOGO_00 + 4, - SPR_INTRO_LOGO_21 = SPR_INTRO_LOGO_00 + 5, - - SPR_INTRO_INFOGRAMES_00 = 23226, - SPR_INTRO_INFOGRAMES_10 = SPR_INTRO_INFOGRAMES_00 + 1, - SPR_INTRO_INFOGRAMES_01 = SPR_INTRO_INFOGRAMES_00 + 2, - SPR_INTRO_INFOGRAMES_11 = SPR_INTRO_INFOGRAMES_00 + 3, - SPR_CREDITS_INFOGRAMES = 23230, SPR_NEW_RIDE_MASK = 29013, diff --git a/src/openrct2/scenes/intro/IntroScene.cpp b/src/openrct2/scenes/intro/IntroScene.cpp index b9c5f9fe5b..9cfcc19e03 100644 --- a/src/openrct2/scenes/intro/IntroScene.cpp +++ b/src/openrct2/scenes/intro/IntroScene.cpp @@ -30,9 +30,29 @@ namespace OpenRCT2 static constexpr PaletteIndex kBackgroundColourLogo = PaletteIndex::primaryRemap2; static constexpr PaletteIndex kBorderColourPublisher = PaletteIndex::pi129; + static constexpr ImageIndex kSpriteChrisSawyerLogo00 = 23215; + static constexpr ImageIndex kSpriteChrisSawyerLogo10 = kSpriteChrisSawyerLogo00 + 1; static constexpr ImageIndex kPaletteChrisSawyerLogo = 23217; + + static constexpr ImageIndex kSpriteRCT2Logo00 = 23218; + static constexpr ImageIndex kSpriteRCT2Logo10 = kSpriteRCT2Logo00 + 1; + static constexpr ImageIndex kSpriteRCT2Logo20 = kSpriteRCT2Logo00 + 2; + static constexpr ImageIndex kSpriteRCT2Logo01 = kSpriteRCT2Logo00 + 3; + static constexpr ImageIndex kSpriteRCT2Logo11 = kSpriteRCT2Logo00 + 4; + static constexpr ImageIndex kSpriteRCT2Logo21 = kSpriteRCT2Logo00 + 5; static constexpr ImageIndex kPaletteRCT2Logo = 23224; + static constexpr ImageIndex kSpriteInfogramesLogo00 = 23226; + static constexpr ImageIndex kSpriteInfogramesLogo10 = kSpriteInfogramesLogo00 + 1; + static constexpr ImageIndex kSpriteInfogramesLogo01 = kSpriteInfogramesLogo00 + 2; + static constexpr ImageIndex kSpriteInfogramesLogo11 = kSpriteInfogramesLogo00 + 3; + + // Including the white box around it + constexpr int32_t kInfogramesLogoWidth = 541; + constexpr int32_t kInfogramesLogoHeight = 426; + constexpr int32_t kInfogramesLogoPadding = 19; + constexpr int32_t kInfogramesLogoOffscreen = kInfogramesLogoHeight + 154; + static std::weak_ptr introSceneImplementation; class IntroSceneImpl @@ -112,7 +132,7 @@ namespace OpenRCT2 LoadPalette(); // Set the Y for the Infogrames logo - _introStateCounter = -580; + _introStateCounter = -kInfogramesLogoOffscreen; // Play the chain lift sound _soundChannel = Audio::CreateAudioChannel(SoundId::liftBM, true); @@ -245,22 +265,22 @@ namespace OpenRCT2 GfxClear(rt, kBackgroundColourDark); break; case IntroState::PublisherScroll: + { GfxClear(rt, kBackgroundColourDark); // Draw a white rectangle for the logo background (gives a bit of white margin) - Rectangle::fill( - rt, - { { (screenWidth / 2) - 320 + 50, _introStateCounter + 50 }, - { (screenWidth / 2) - 320 + 50 + 540, _introStateCounter + 50 + 425 } }, - kBorderColourPublisher); + const auto leftTop = ScreenCoordsXY((screenWidth - kInfogramesLogoWidth) / 2, _introStateCounter + 50); + const auto rightBottom = leftTop + ScreenSize(kInfogramesLogoWidth - 1, kInfogramesLogoHeight - 1); + Rectangle::fill(rt, { leftTop, rightBottom }, kBorderColourPublisher); // Draw Infogrames logo - GfxDrawSprite(rt, ImageId(SPR_INTRO_INFOGRAMES_00), { (screenWidth / 2) - 320 + 69, _introStateCounter + 69 }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_INFOGRAMES_10), { (screenWidth / 2) - 320 + 319, _introStateCounter + 69 }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_INFOGRAMES_01), { (screenWidth / 2) - 320 + 69, _introStateCounter + 319 }); - GfxDrawSprite( - rt, ImageId(SPR_INTRO_INFOGRAMES_11), { (screenWidth / 2) - 320 + 319, _introStateCounter + 319 }); + auto leftTopLogo = leftTop + ScreenCoordsXY(kInfogramesLogoPadding, kInfogramesLogoPadding); + GfxDrawSprite(rt, ImageId(kSpriteInfogramesLogo00), leftTopLogo); + GfxDrawSprite(rt, ImageId(kSpriteInfogramesLogo10), leftTopLogo + ScreenCoordsXY(250, 0)); + GfxDrawSprite(rt, ImageId(kSpriteInfogramesLogo01), leftTopLogo + ScreenCoordsXY(0, 250)); + GfxDrawSprite(rt, ImageId(kSpriteInfogramesLogo11), leftTopLogo + ScreenCoordsXY(250, 250)); break; + } case IntroState::DeveloperBegin: GfxClear(rt, kBackgroundColourDark); GfxTransposePalette(kPaletteChrisSawyerLogo, 255); @@ -269,8 +289,8 @@ namespace OpenRCT2 GfxClear(rt, kBackgroundColourDark); // Draw Chris Sawyer logo - GfxDrawSprite(rt, ImageId(SPR_INTRO_CHRIS_SAWYER_00), { (screenWidth / 2) - 320 + 70, _introStateCounter }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_CHRIS_SAWYER_10), { (screenWidth / 2) - 320 + 320, _introStateCounter }); + GfxDrawSprite(rt, ImageId(kSpriteChrisSawyerLogo00), { (screenWidth / 2) - 320 + 70, _introStateCounter }); + GfxDrawSprite(rt, ImageId(kSpriteChrisSawyerLogo10), { (screenWidth / 2) - 320 + 320, _introStateCounter }); break; case IntroState::LogoFadeIn: if (_introStateCounter <= 0xFF00) @@ -352,20 +372,20 @@ namespace OpenRCT2 int32_t imageWidth = 640; int32_t imageX = (screenWidth - imageWidth) / 2; - DrawingEngineInvalidateImage(SPR_INTRO_LOGO_00); - DrawingEngineInvalidateImage(SPR_INTRO_LOGO_10); - DrawingEngineInvalidateImage(SPR_INTRO_LOGO_20); - DrawingEngineInvalidateImage(SPR_INTRO_LOGO_01); - DrawingEngineInvalidateImage(SPR_INTRO_LOGO_11); - DrawingEngineInvalidateImage(SPR_INTRO_LOGO_21); + DrawingEngineInvalidateImage(kSpriteRCT2Logo00); + DrawingEngineInvalidateImage(kSpriteRCT2Logo10); + DrawingEngineInvalidateImage(kSpriteRCT2Logo20); + DrawingEngineInvalidateImage(kSpriteRCT2Logo01); + DrawingEngineInvalidateImage(kSpriteRCT2Logo11); + DrawingEngineInvalidateImage(kSpriteRCT2Logo21); GfxClear(rt, kBackgroundColourLogo); - GfxDrawSprite(rt, ImageId(SPR_INTRO_LOGO_00), { imageX + 0, 0 }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_LOGO_10), { imageX + 220, 0 }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_LOGO_20), { imageX + 440, 0 }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_LOGO_01), { imageX + 0, 240 }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_LOGO_11), { imageX + 220, 240 }); - GfxDrawSprite(rt, ImageId(SPR_INTRO_LOGO_21), { imageX + 440, 240 }); + GfxDrawSprite(rt, ImageId(kSpriteRCT2Logo00), { imageX + 0, 0 }); + GfxDrawSprite(rt, ImageId(kSpriteRCT2Logo10), { imageX + 220, 0 }); + GfxDrawSprite(rt, ImageId(kSpriteRCT2Logo20), { imageX + 440, 0 }); + GfxDrawSprite(rt, ImageId(kSpriteRCT2Logo01), { imageX + 0, 240 }); + GfxDrawSprite(rt, ImageId(kSpriteRCT2Logo11), { imageX + 220, 240 }); + GfxDrawSprite(rt, ImageId(kSpriteRCT2Logo21), { imageX + 440, 240 }); } IntroScene::IntroScene(IContext& context)