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

[rcore] ToggleFullscreen() not working as expected with HighDPI mode enabled #3972

Open
fishbowlforever opened this issue May 10, 2024 · 2 comments
Labels
help needed - please! I need help with this issue

Comments

@fishbowlforever
Copy link

fishbowlforever commented May 10, 2024

when enabling the highDPI flag in raylib (SetConfigFlags(FLAG_WINDOW_HIGHDPI);) and using ToggleFullscreen(); the fullscreen Window is twice the size it should be and you only see the top left quarter of your software. Toggling again will half the window size each time you toggle fullscreen until the window is gone.

image

steps to repdroduce:
SetConfigFlags(FLAG_WINDOW_HIGHDPI); on a high dpi monitor
call ToggleFullscreen();

I am using Windows 11

@fishbowlforever fishbowlforever changed the title [module] Raylib toggling fullscreen destroys Window in HighDPI mode [core] Raylib toggling fullscreen destroys Window in HighDPI mode May 10, 2024
@raysan5 raysan5 changed the title [core] Raylib toggling fullscreen destroys Window in HighDPI mode [rcore] ToggleFullscreen() not working as expected with HighDPI mode enabled May 12, 2024
@raysan5
Copy link
Owner

raysan5 commented May 29, 2024

@fishbowlforever Thanks for reporting, could you reproduce this issue on Windows 10? It sounds like platform dependant...

In any case, I'm afraid I don't have a HighDPI monitor at the moment for testing on my side...

@raysan5 raysan5 added the help needed - please! I need help with this issue label May 29, 2024
@M1NGS
Copy link

M1NGS commented May 30, 2024

@fishbowlforever Thanks for reporting, could you reproduce this issue on Windows 10? It sounds like platform dependant...

In any case, I'm afraid I don't have a HighDPI monitor at the moment for testing on my side...

set display scaling to 125% enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help needed - please! I need help with this issue
Projects
None yet
Development

No branches or pull requests

3 participants