MantisBT - VCMI
View Issue Details
0000636VCMISound, music, videospublic2010-11-12 19:592011-05-31 01:05
ruppertus 
Ivan 
normalmajoralways
closedfixed 
0.83 
0.84 
0000636: Quitting the game doesn't return the original resolution of my desktop
I have desktop resolution set to 1440x900.
When I set the following parameter in the config/settings file:
        resolution=1440x900; // format: WxH
        pregameRes=800x600; //WxH
        screenSize=0x0; //WxH, if 0x0 will be set to he same value as resolution
        bpp=24; // bits per pixels: 16, 24 or 32
        fullscreen=1; //0 - windowed mode, 1 - fullscreen
start the game in full screen mode and quick it (to Desktop) then the game doesn't revert to desktop's resolution. That's annoying.
1. Set the config file (like in the description)
2. Start the game
3. Quick the game
No tags attached.
Issue History
2010-11-12 19:59ruppertusNew Issue
2010-11-12 20:18ruppertusNote Added: 0001374
2010-11-16 00:40ZamolxisNote Added: 0001409
2010-11-16 00:40ZamolxisSummaryThe game doesn't revert to the desktop's resolution => Quitting the game doesn't return the original resolution of my desktop
2010-11-16 00:48ZamolxisStatusnew => feedback
2011-01-17 16:21IvanNote Added: 0001494
2011-01-17 16:21IvanStatusfeedback => resolved
2011-01-17 16:21IvanFixed in Version => 0.89
2011-01-17 16:21IvanResolutionopen => fixed
2011-01-17 16:21IvanAssigned To => Ivan
2011-05-31 01:04ZamolxisNote Added: 0001770
2011-05-31 01:05ZamolxisStatusresolved => closed

Notes
(0001374)
ruppertus   
2010-11-12 20:18   
This is console log:

Ending current game!
Removed GUI.
Deleted mapHandler and gameState.
lt-vcmiclient: /usr/include/boost/thread/pthread/recursive_mutex.hpp:62: boost::recursive_mutex::~recursive_mutex(): Assertion `!pthread_mutex_destroy(&m)' failed.
Przerwane
(0001409)
Zamolxis   
2010-11-16 00:40   
I assumed that by "Quick" you meant "Quit" (confirmed also by the error in the comment), so I updated the summary for clarification.

Not sure if relevant, but this reminds me I had such issues also with H3 WoG. Not often, but still pretty annoying when it happened. I'm not a coder, but I could guess that similarly, the reason may be linked to the fact that you've set up fullscreen=1. Try this: change it back to 0, open the game, press F4, enjoy the game in full screen, and then press again F4 before quitting. Maybe it'll work as temporary workaround.
(0001494)
Ivan   
2011-01-17 16:21   
Not reproducible.
Most possibly caused by already fixed 0000637 - crash on exit, desktop resolution not restored correctly.
Moving to resolved, reopen if needed.
(0001770)
Zamolxis   
2011-05-31 01:04   
Not reopened in three months, so probably fixed indeed. Closing...