Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(w3ddevice): paint no windows while the cinema hides the HUD
Olcay Seygan117c8c14c21b
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cppindex 606efe0fe..b5988d1c4 100644--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp@@ -397,13 +397,11 @@ void W3DInGameUI::reset( void )//-------------------------------------------------------------------------------------------------void W3DInGameUI::draw( void ){- // -cinema: none of the interface, only the windows - the control bar is already hidden, and- // what is left on the window list is the menu somebody opened on purpose+ // -cinema: none of the interface and none of the windows either. Painting the window list let a+ // star banner slide in at the top right of an observer's footage (twice in trailer_chaos, frames+ // 930 and 1230), and nothing on the list belongs in a shot. The letterbox is the display's own.if( CinemaDirector_hidesHud() )- {- TheWindowManager->winRepaint();return;- }preDraw();