-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
If window size is bigger than screen resolution, window cannot be moved #155
Comments
Ah, yeah, the window is currently always centered when the game opens - I wouldn't really consider this a bug, as this is the behaviour I'd expect based on the code as it stands, but it might be something we want to change in the future. |
I think it is a bug, because if you cant even see the window if it is too big, and it's not centered. Window size should probably be clamped to the size of the monitor at creation? |
When you say that you can't see the window, do you mean that the entire window goes invisible, or just that you can't see the window's frame? |
the Whole window |
Huh 🤔 I wasn't able to replicate that on my machine, hence the misunderstanding - when I made the window bigger than my screen resolution, the window just appears bigger than the screen (almost as if it's in fullscreen but zoomed in). |
Marking this as 'could not replicate' for now, as I can't find a way to trigger the bug on my machine. My hunch is that this is an issue in SDL2, as I pretty much just pass the window size straight through to it. |
Try to enable some windows scaling above 100%, you might be able to replicate it then. I causes lots of problems for me. |
Ooh, yeah, hadn't considered it might be due to DPI issues. I'll have a play around with that when I get the chance 👍 |
If i use really big resolution like 10000 by 10000, the window isn't even visible, because of negative position.
This could be prevented by preventing window position being less than 0,0
The text was updated successfully, but these errors were encountered: