User Interface not showing up in Windowed Mode
After getting in a game, the User interface does not show up (Weapon, AP, HP, Menu Buttons, Skills, etc.).
f1_res.ini
[MAIN] SCR_WIDTH=2560 SCR_HEIGHT=1440 WINDOWED=1 SCALE_2X=1
Fallout 1 CE v1.1
What is your device, OS, and screen resolution? I've tried your settings on the biggest resolution MacBook Pro is capable of (4096x2560), everything works as expected.
Laptop CPU: i7 13700HX, GPU: nVidia RTX 4060 Laptop, 32 GB RAM, Windows 11, 2560x1440p Screen. The main menu works, but after loading a save, the UI elements are not present at the bottom of the screen. Cursor does show up. The UI shows up when changed to Fullscreen mode, but that mode has other issues w/ alt+tab (#161)
Pressing 'S' brings up the Skilldex
Edit: Here's what it looks like with SCALE_2X=0 and 'S' pressed to bring up Skilldex. It's more cut off at the bottom:
The same issue is also occuring in Fallout 2 CE v1.3.
I figured it out. The UI works in windowed mode when Scale is set to 100% in Display Settings. When I lower it, the rest of my desktop shrinks but it does work in game :D.
For some reason, the Windows System Display Scaling setting is applying to Fallout 1 & 2 CE borderless window mode when it shouldn't be.
Found a temp fix. Right-Click CE executable, Properties -> Compatibility -> Change High DPI Settings -> Override High DPI Scaling Behavior => Application.
SDL2 docs might have more info on window creation in High DPI environments regarding this issue. There might be a flag or something to force application-driven scaling.
Edit: https://wiki.libsdl.org/SDL2/SDL_GetWindowSize
"The window size in screen coordinates may differ from the size in pixels, if the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with high-dpi support (e.g. iOS or macOS). Use SDL_GL_GetDrawableSize(), SDL_Vulkan_GetDrawableSize(), or SDL_GetRendererOutputSize() to get the real client area size in pixels."
https://discourse.libsdl.org/t/high-dpi-mode/34411