Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Interface not showing up in Windowed Mode #164

Open
nickkeane opened this issue Apr 28, 2024 · 4 comments
Open

User Interface not showing up in Windowed Mode #164

nickkeane opened this issue Apr 28, 2024 · 4 comments

Comments

@nickkeane
Copy link

nickkeane commented Apr 28, 2024

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

@alexbatalov
Copy link
Owner

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.

@nickkeane
Copy link
Author

nickkeane commented Apr 29, 2024

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)

image

Pressing 'S' brings up the Skilldex

image

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:

image

The same issue is also occuring in Fallout 2 CE v1.3.

@nickkeane
Copy link
Author

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.

image

For some reason, the Windows System Display Scaling setting is applying to Fallout 1 & 2 CE borderless window mode when it shouldn't be.

@nickkeane
Copy link
Author

nickkeane commented Apr 30, 2024

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

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

No branches or pull requests

2 participants