Skip to content

Conversation

@andresdelcampo
Copy link
Contributor

@andresdelcampo andresdelcampo commented Sep 27, 2025

Summary

Fixes the regression introduced in #6233 in which the vertical size could keep growing on VM reopen when remembering size and pos, due to not removing from the height the showed or hidden non-content elements (toolbar and status bar).

This fix ensures they are taken into account for the vertical size.

Tested with multiple combinations of parameters while reopening the machine, this time taking into account only the size of the content area. Of course including Hide Toolbar, Hide Status Bar and combinations of those while reopening the VM and ensuring the size remains.

Unfortunately it is extremely hard to ensure that this functionality works correctly in all cases as there are too many parameters that interact with each other sometimes even in contradicting ways. That said, I can just offer to jump in whenever anything is found related to any of my changes to fix it to the best of my ability.

Checklist

  • Closes #xxx
  • I have tested my changes locally and validated that the functionality works as intended
  • I have discussed this with core contributors already -reported by @OBattler in the former PR per Discord comment from gr
  • This pull request requires changes to the ROM set

References

(#6233)
https://discord.com/channels/262614059009048590/1421479562029830154

Change window resizing logic when using 4:3 aspect ratio to resize content only. Fixed issues in Remember size and position that are derived from the change. There is a slight flicker while resizing with force 4:3 aspect ratio.
…sbar and remembering size and po

The recent rework on the force aspect 4:3 which needed to revisit the remembering of size and position introduced a regression that would save the size without considering the non-content window elements that could be showed or hidden. Now it calculates it accordingly.
@OBattler OBattler merged commit 74aa156 into 86Box:master Sep 27, 2025
45 checks passed
@OBattler
Copy link
Member

And there's another regression, in high DPI modes with high DPI scaling, this happens:
imagem

When turning DPI scaling off and on again, this happens:
imagem

@andresdelcampo
Copy link
Contributor Author

Weird, I could swear I tried that setting -in fact I had it marked. But I have a repro. Fix coming shortly. If you can think of any other settings that could be affected apart from the ones considered so far let me know -to ensure there are no more regressions still present from the original fix.

@andresdelcampo
Copy link
Contributor Author

I don't get this. I reproed this. I have been trying for hours to fix this trying all kinds of things in code. Even switched back to earlier versions and try to remake it cleaner. After failing and coming back completely clean to latest and rebuilding from scratch... everything works as intended and I cannot repro this... I even created a new machine in case I added something to my config files... and nothing. I cannot repro it anymore with latest version recompiled clean. This might take a bit longer as I am quite puzzled right now.

@andresdelcampo
Copy link
Contributor Author

No, I don't get it. Neither with the latest development build. @OBattler -or someone else, could you please try to reproduce this with the latest development build? Maybe we have seen some strange artifact due to a code upgrade that somehow goes away with a clean rebuild?

Cacodemon345 added a commit to Cacodemon345/86Box that referenced this pull request Oct 1, 2025
…ize could grow when reopening the VM (86Box#6239)"

This reverts commit 74aa156.
OBattler pushed a commit that referenced this pull request Oct 1, 2025
…viour (#6264)

* Revert "Fix remember size and position regression in which vertical size could grow when reopening the VM (#6239)"

This reverts commit 74aa156.

* Revert "Change window resizing logic when using 4:3 aspect ratio (#6233)"

This reverts commit bc085ac.

* Revert "Run more iterations and retested"

This reverts commit ca429dd.

* Revert "Fix Force 4:3 Aspect Ratio not working if Resizable window is enabled #6062"

This reverts commit 717b66c.

* Implement Force 4:3 option for resizable windows with fullscreen behaviour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants