1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fixed video flickering in the campaign intro screen.

This commit is contained in:
Michał W. Urbańczyk
2014-03-01 18:50:50 +00:00
parent f6c2c96cdc
commit 2c52617c1d

View File

@@ -4186,7 +4186,7 @@ void CPrologEpilogVideo::show( SDL_Surface * to )
//BUG: some videos are 800x600 in size while some are 800x400 //BUG: some videos are 800x600 in size while some are 800x400
//VCMI should center them in the middle of the screen. Possible but needs modification //VCMI should center them in the middle of the screen. Possible but needs modification
//of video player API which I'd like to avoid untill we'll get rid of Windows-specific player //of video player API which I'd like to avoid untill we'll get rid of Windows-specific player
CCS->videoh->update(pos.x, pos.y, to, false, false); CCS->videoh->update(pos.x, pos.y, to, true, false);
//move text every 5 calls/frames; seems to be good enough //move text every 5 calls/frames; seems to be good enough
++positionCounter; ++positionCounter;