MantisBT - VCMI
View Issue Details
0002239VCMISound, music, videospublic2015-08-30 18:352022-04-12 09:17
Dydzio 
SXX 
normalminoralways
closedfixed 
Microsoft WindowsWindows 7Home Premium x64
0.98c 
0.98f 
0002239: Game display isn't stretched after minimizing and maximizing in fullscreen mode
When I press alt+tab on Windows 7, and then restore the game, the game screen is centered and not stretched, what results in black pixels on left and right sides of my screen. Issue can be fixed by switching to window mode, and then back to full screen.
Minimize game, and then maximize.
Seems to be broken since VCMI 0.97c (SDL2 issue?)
No tags attached.
Issue History
2015-08-30 18:35DydzioNew Issue
2015-11-28 23:08SXXNote Added: 0006133
2015-11-28 23:08SXXStatusnew => resolved
2015-11-28 23:08SXXFixed in Version => 0.98f
2015-11-28 23:08SXXResolutionopen => fixed
2015-11-28 23:08SXXAssigned To => SXX
2022-04-12 09:17PovelitelStatusresolved => closed

Notes
(0006133)
SXX   
2015-11-28 23:08   
This one really annoying. Happen because we use SDL_RenderSetLogicalSize, but when window restored after alt+tab some of window state is missing.

Fixed there:
https://github.com/vcmi/vcmi/commit/f940e3ed429a2cbe33b32e9e5b2fd8b78b7412d7 [^]

I'm tried to make proper fix, but then video player become partially borked and only covered small portion of screen. So I just end up applying simple hack there as I don't really want to touch video playback code.