RobWatlingSF / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Allow dynamic modification of game window dimensions based on changed monitor layout #156

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Begin game with some resolution.
2. Update resolution or something when I plug or unplug the extra monitor 
output on the netbook, or when I jump to another app.
3. The game screen is bigger than real window size (full screen or window 
mode), so the borders of the game screen are invisible (we can't select weapons 
easily).

What is the expected output? What do you see instead?
To upodate automatically the screen, or at least a key to autodetect and 
refresh.

What version of the product are you using? On what operating system?
* Hedgewars: 0.9.15
* OS: Microsoft Windows XP 2003 SP3; Ubuntu 10.10 (both).

(I've no screen capture at the moment).

Original issue reported on code.google.com by ar.e...@gmail.com on 12 Jan 2011 at 12:07

GoogleCodeExporter commented 8 years ago
You're just going to have to update it in Config options.

Is a known issue, and related also to why windowed mode uses same resolutions 
as fullscreen mode.
To fix, the engine would have to have more support for varying window size, mid 
game.

Original comment by kyberneticist@gmail.com on 12 Jan 2011 at 5:53

GoogleCodeExporter commented 8 years ago
This is not a configuration problem. The resolution is properly configured and 
run well when I start the game. The problem is when you connect, disconnect or 
reconnect (like when you move the cable) monitor, the screen does flicker (both 
my Asus netbook, and the Acer netbook of a friend of mine). When you return 
after the blink, the computer resolution remains the same. But the "canvas" of 
the game does not fit either onscreen or in the window (when I change it to 
windowed mode), just like it has a higher resolution. So, at least one key to 
restore the original resolution (or whatever) would be helpful.

Original comment by ar.e...@gmail.com on 12 Jan 2011 at 6:14

GoogleCodeExporter commented 8 years ago
Right.
What I mean is, though, that if you restart the game, and go to Config, your 
new list of available resolutions based upon your change of the monitor will 
appear, and you can pick a new valid value.

The problem, as I noted, is that the game engine does not, at present, support 
dynamically changing the window size.
As I noted, adding support for changing resolution dynamically in game can be 
used to resolve your problem, as well as allowing different resolutions when 
switching from windowed to fullscreen and back (only enabled under Linux I 
think due to some windows driver issues, so you might not have noticed that).

Original comment by kyberneticist@gmail.com on 12 Jan 2011 at 6:35

GoogleCodeExporter commented 8 years ago
Trying to make what I meant by the description change a bit clearer...

Original comment by kyberneticist@gmail.com on 12 Jan 2011 at 6:37

GoogleCodeExporter commented 8 years ago
umh I'm not really sure I've understood this feature request, but could you try 
the latest revision as it contains some context restore and window resize 
properties?

Original comment by vittorio...@gmail.com on 23 Aug 2011 at 12:41

GoogleCodeExporter commented 8 years ago
Well. While current revision *does* allow resizing, what would make it 
friendlier for this guy is if we rerequested the maximum monitor size, and if 
the game window size was larger than it, shrink it.

We could do that in the resize event perhaps, so it would be triggered by 
hitting F12.

Original comment by kyberneticist@gmail.com on 15 Nov 2011 at 4:11

GoogleCodeExporter commented 8 years ago
Or, maybe when quit menu is activated so tabbing out or hitting esc would also 
immediately shrink the window.

Original comment by kyberneticist@gmail.com on 15 Nov 2011 at 5:20