Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BlisterB
Copy link
Member

@BlisterB BlisterB commented Dec 31, 2025

This PR will address problems of Panoramas/Pictures not being correctly displayed when using Custom Resolution and the FakeResolution mode.
Problems occur when displaying a map smaller than the screen. With the FakeResolution mode, the map is centered (and black bar are displayed around the screen.
But Panoramas and pictures offset are not calculated correctly, resulting in wrong positioning.

I discovered that the root cause was that the code was assuming that small maps were always of the size of 320x240, therefore maps with size larger than 320x240 but smaller than the Custom Resolution were not handled correctly.

Please do not merge yet, the issue related to Panorama should be fixed, but I discovered that we have a similar problem with Pictures.

As mentioned in #3509, Aëdemphia is a great game to test this PR.

This also fixes #3342 .

@BlisterB
Copy link
Member Author

BlisterB commented Jan 1, 2026

ca660b6 Fixes the calculation of Picture's offset (the fix is similar to e073662 for Panoramas).

At first it didn't solve issues in Aëdemphia for some map smaller than the screen.
I discovered that the game uses the famous trick for centering pictures scrolling with the map. It retrieves the screen X/Y position of an event with "Control Variable" command, and place the picture accordingly to the result.

image

I discovered that when using FakeResolution mode, the result was wrong, ex. with a map of 20 horizontal tiles:

  • With the standard resolution of 320x240, the result was 160 for ScreenX
  • With the widescreen resolution of 416x240, the result was 112 (160 - the black border width of 48)

Turns out ControlVariables::Event() was applying an offset to the result in case of FakeResolution mode, this offset seems unnecessary because in FakeResolution mode, we want to keep the same value than with standard resolution.

80c4715 fixes this issue by removing this offset applying to the screen X/Y position when using FakeResolution mode.

Interior are now fixed in Aëdemphia, here is a video of the first town of the city with this PR:
https://www.youtube.com/watch?v=BKPsRmbDW0g

@BlisterB
Copy link
Member Author

BlisterB commented Jan 1, 2026

FakeResolution mode seems not to center the screen on a map with looping.
Example in Onsen a Tale of Yu :

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Wide screen] Bug with "Change Parallax Back" command

1 participant