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(gameclient): draw the cursor over a playing video
Olcay Seygan99d6437ce0db
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cppindex ae6a62dea..d334ea28c 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp@@ -636,6 +636,14 @@ void GameClient::update( void )if(TheGlobalData->m_playIntro || TheGlobalData->m_afterIntro){+ //+ // The cursor stays hidden until the main menu comes up, so through the logos and the+ // sizzle reel the pointer was gone: clicking through them was aiming blind, and on a+ // second monitor it looked like the game had hung.+ //+ if( TheMouse )+ TheMouse->setVisibility( TRUE );+// redraw all views, update the GUI{TheDisplay->DRAW();diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cppindex 0bd705911..a0915a2b3 100644--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp@@ -1960,14 +1960,20 @@ AGAIN:// end of video example code- // draw the mouse- if( TheMouse )- TheMouse->DRAW();-+ //+ // The movie goes down before the cursor, not after it. Drawn the other way round a+ // full screen video covered the pointer, so through the intro and every in-game+ // cinematic there was nothing on screen to aim the click with.+ //if ( m_videoStream && m_videoBuffer ){drawVideoBuffer( m_videoBuffer, 0, 0, getWidth(), getHeight() );}++ // draw the mouse+ if( TheMouse )+ TheMouse->DRAW();+if( m_copyrightDisplayString ){Int x, y, dX, dY;