Opened 12 years ago
Last modified 9 years ago
#1606 new defect
Resizing the game window produces GL errors (when much smaller than 1024x768)
Reported by: | Mikhail | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Backlog |
Component: | Core engine | Keywords: | gui resizing |
Cc: | Patch: |
Description (last modified by )
There are 2 issues I've noticed recently:
Main menu becomes distorted when you go into windowed mode and resize game window to something smaller than 600x600. You can see this behavior on screenshots: hud_screen.png and hud_screen1.png.
- When in-game: go into windowed mode and start resizing window to smaller size. At some point you'll get error message: "ERROR: CRenderer::EndFrame: GL errors occurred". I've attached mainllog.html to this ticket so you can view the details.
Also, as I've noticed, all ingame models are being scaled when you resize game window. Is it supposed to happen or just a glitch?
All of this behavior I've encountered playing r11863 on Gentoo ~amd64 and on Windows XP x64 (running as VirtualBox guest).
Attachments (5)
Change History (15)
by , 12 years ago
Attachment: | hud_screen.png added |
---|
comment:1 by , 12 years ago
Summary: | GUI is being distorted on window resizing → GUI is being distorted whe you resize the game window |
---|
comment:2 by , 12 years ago
Summary: | GUI is being distorted whe you resize the game window → Resizing the game window produces GL errors |
---|
The game is really not meant to be played on a screen smaller than at least 1024x768.
I'll leave this open though, as scaling the window should preferably not cause any errors, even if you scale it this small.
comment:3 by , 12 years ago
Description: | modified (diff) |
---|---|
Summary: | Resizing the game window produces GL errors → Resizing the game window produces GL errors (when much smaller than 1024x768) |
comment:4 by , 12 years ago
Yes, I understand that screen resolution smaller than 1024x768 is not quite playable. So maybe it is better to add some restrictions. For example, implement a list of supported resolutions in the Settings menu. Or maybe limit users' ability to resize game window, making it impossible to achieve such small screen size.
And what about scaling of ingame models? Is it intended to be so? Because I don't think that it would be playable when scaled down in 1280x1024 with two or three big armies on screen.
comment:5 by , 12 years ago
Can you attach screenshots of the scaling behavior? Preferably before and after.
comment:7 by , 12 years ago
I think the scaling you're referring to is maintaining the (vertical?) field of view. It should be possible to zoom in or out to see less or more of the world. It seems to be working as designed.
follow-up: 10 comment:9 by , 11 years ago
SDL 2.0 will have an SDL_SetWindowMinimumSize
function, not sure how or if it works on every OS.
comment:10 by , 9 years ago
Replying to historic_bruno:
SDL 2.0 will have an
SDL_SetWindowMinimumSize
function, not sure how or if it works on every OS.
This function works in Windows, but the problem is it sets the fullscreen resolution as well, if the window becomes fullscreen (and SDL_WINDOW_FULLSCREEN
is used).
Screenshot 1