RetroArch
RetroArch copied to clipboard
[msvc2005/2010] -20px height every time the window is "reinitialized" with the "Remember size and position" setting
Description
While trying to reproduce an issue with mvsc2005 and 2010 (https://github.com/libretro/snes9x2010/issues/146), I've noticed a very weird thing, if you're using RetroArch in windowed mode with the "Remember size and position" setting, the height will be down by 20px each time the window is "reinitialized", so each time you (re)start RA, each time you start/close content, etc.
https://user-images.githubusercontent.com/33353403/120166236-ab9c5200-c1fc-11eb-8371-d0b4f1894675.mp4
It looks like it goes down to "-20", then it stops doing it, of course with a -20 window height, well... you can't see anything excepted the RA title bar 😅
The issue does not exist in the non-msvc versions, and I haven't tried the msvc2017 version.
Expected behavior
If I set 1280x720 for example, it should stay at 1280x720.
Actual behavior
If I set 1280x720, next time I'll boot RA or boot a game it'll drop to 1280x700, then 1280x680, etc.
Steps to reproduce the bug
- Start RA, go to
Settings > Video > Windowedand turn ON the "Remember Size and Position" setting (remember the window height). - Restart RA, go back to the "Windowed" menu, you should see the height shorter by 20px.
- Restart again, another 20px, etc.
Bisect Results
No clue exactly, first time I'm testing the msvc builds (I'm on Windows 10) :p It was working in 1.9.0 and the issue was already here in 1.9.1, but because of the gap between the 2 versions I doubt this is a super helpful information...
Version/Commit
- RetroArch: msvc2005 and 2010 stable versions
Environment information
- OS: Windows 10
Revisiting this few years later, the cause is simple: the menu bar! It doesn't appear for some reason even with the setting enabled and when saving size and position the height of the menu bar is subtracted.
Hmm, we should look if we can get the menubar to work with those older MSVC versions.