[Scummvm-tracker] [ScummVM :: Bugs] #13073: BACKENDS: SDL: Strange initSizeHint() behavior
ScummVM :: Bugs
trac at scummvm.org
Sat Nov 13 13:58:08 UTC 2021
#13073: BACKENDS: SDL: Strange initSizeHint() behavior
-------------------------+----------------------
Reporter: eriktorbjorn | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Graphics
Version: | Keywords:
Game: Zork Nemesis |
-------------------------+----------------------
I have the current setup:
I'm using the "SDL Surface" graphics mode with the Normal 4x scaler. This
means the launcher opens at a resolution of 1280x800 pixels.
Since I haven't specified scale factor for any other games, they try to
open at as close as possible to 1280x800. E.g. The Secret of Monkey Island
(320x200) starts at 1280x800, FM-Towns Loom (320x240) at 1280x960, Touché
(640x400) at 1280x800, Curse of Monkey Island (640x480) at 1280x960, etc.
Basically, most games will start in either Normal 4x or 2x mode.
But the ZVision engine uses initGraphicsModes(), which calls
initSizeHint(), to support different resolutions.
Zork Nemesis has a native resolution of 640x480, and that's what
_hintedHeight and _hintedWidth are set to. So even though ScummVM _thinks_
the game is running with a Normal 2x scaler, the window it creates is
640x480 pixels.
This does not feel like the intended behavior, but I don't understand the
purpose of _hintedHeight and _hintedWidth so I don't dare messing with it.
If I explicitly set Zork Nemesis to use a 2x scaler, the hinted dimensions
are set to 2560x1920 pixels, which is larger than my screen.
--
Ticket URL: <https://bugs.scummvm.org/ticket/13073>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list