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(ui): centre the start spot fill on the ring's hole
Olcay Seygan5b78ccc704e7
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cppindex 0c9637039..c560df77e 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp@@ -915,8 +915,10 @@ static void drawStartSpot( GameWindow *window, WinInstanceData *instData )// the stock spot's dark middle is about 62% of the button, inside its blue ring: colour only thatconst Int insetX = width * 19 / 100;const Int insetY = height * 19 / 100;+ // and that middle sits a pixel right of and below the button's own (two at 4K)+ const Int holeShift = max( 1, width / 28 );TheDisplay->drawImage( TheMappedImageCollection->findImageByName( "ReforgedLobbySpot" ),- x + insetX, y + insetY, x + width - insetX, y + height - insetY, fill );+ x + insetX + holeShift, y + insetY + holeShift, x + width - insetX + holeShift, y + height - insetY + holeShift, fill );DisplayString *number = instData->getTextDisplayString();// the number in the bold of the button's own face, so it holds up on a bright discGameFont *font = number->getFont();