Open fonic opened 2 years ago
After some digging into the issue, I believe this is about aspect ratio in rendering rather than VGA mode.
When loading a saved state RENDER_SetSize()
is called. But it's last parameter is given the wrong aspect ratio, making it basically calculate aspect ratio twice.
As far as I can tell that's all irrelevant if the aspect ratio is flat 1.0, as it is with most programs I guess.
The save state feature is not perfect indeed. Feel free to improve it.
Code of Conduct & Contributing Guidelines
Have you checked that no other similar bug report(s) already exists?
What operating system(s) this bug have occurred on?
Windows 10 21H2
What version(s) of DOSBox-X have this bug?
0.83.20
Describe the bug
While playing Rusty, I noticed that saving/loading states does not save/restore the current graphics mode. Rusty is a perfect example as it (presumably) uses different graphics modes / resolutions for actual gameplay and intermissions.
When e.g. saving a state during a stage/level and then loading this state during an intermission (or the title screen), graphics get messed up (see screenshot).
Screenshot:
Expected behavior
When loading a previously saved state, the graphics mode / resolution that was active when saving should be restored as well.
Steps to reproduce the behaviour
Used configuration
Emulator log
Additional context
No response