[Scummvm-git-logs] scummvm master -> a2c29e1ac051b585bbbc2d16122661ea9ce17f2e
Scorpeg
noreply at scummvm.org
Tue Nov 3 14:43:51 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a2c29e1ac0 HOLLYWOOD: Skip game-area letterboxing under device rotation and change label for keymap
Commit: a2c29e1ac051b585bbbc2d16122661ea9ce17f2e
https://github.com/scummvm/scummvm/commit/a2c29e1ac051b585bbbc2d16122661ea9ce17f2e
Author: Scorp (scorp at mrs.mn)
Date: 2026-11-03T17:43:42+03:00
Commit Message:
HOLLYWOOD: Skip game-area letterboxing under device rotation and change label for keymap
Changed paths:
engines/hollywood/metaengine.cpp
engines/hollywood/monsters/gameplay/hotspots.cpp
diff --git a/engines/hollywood/metaengine.cpp b/engines/hollywood/metaengine.cpp
index b3d60fe4934..61d4982387e 100644
--- a/engines/hollywood/metaengine.cpp
+++ b/engines/hollywood/metaengine.cpp
@@ -88,7 +88,7 @@ Common::Array<Common::Keymap *> HollywoodMetaEngine::initKeymaps(const char *tar
if (getGameId(target) == "runaway")
return RunawayEngine::initKeymaps();
Common::KeymapArray keymaps = MetaEngine::initKeymaps(target);
- Common::Action *action = new Common::Action(Common::kStandardActionToggleHotspots, _("Show hotspots"));
+ Common::Action *action = new Common::Action(Common::kStandardActionToggleHotspots, _("Show/hide hotspots"));
action->setEvent(Common::EVENT_HOTSPOTS_SHOW);
action->addDefaultInputMapping("h");
keymaps[0]->addAction(action);
diff --git a/engines/hollywood/monsters/gameplay/hotspots.cpp b/engines/hollywood/monsters/gameplay/hotspots.cpp
index 5c074c9a47e..4e860e09fcb 100644
--- a/engines/hollywood/monsters/gameplay/hotspots.cpp
+++ b/engines/hollywood/monsters/gameplay/hotspots.cpp
@@ -19,7 +19,9 @@
*
*/
+#include "common/config-manager.h"
#include "common/frac.h"
+#include "common/rotationmode.h"
#include "common/system.h"
#include "common/ustr.h"
#include "graphics/hotspot_renderer.h"
@@ -53,6 +55,10 @@ protected:
if (!fit && !center && !integral)
return;
+ if (g_system->hasFeature(OSystem::kFeatureRotationMode) &&
+ Common::parseRotationMode(ConfMan.getInt("rotation_mode")) != Common::kRotationNormal)
+ return;
+
// Desktop backends can center the game inside a larger overlay.
const Common::Rect safeArea = g_system->getSafeOverlayArea();
if (safeArea.isEmpty())
More information about the Scummvm-git-logs
mailing list