Skip to content

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.

fix(gameengine): keep listbox rows over 127 pixels tall on screen

Olcay Seygana175a4fb5738
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h b/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h
index 1d985fc11..6185ae9ab 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h
@@ -338,7 +338,7 @@ typedef struct _ListEntryRow
// The following fields are for internal use and
// should not be initialized by the user
Int listHeight; // calculated total Height at the bottom of this entry
- Byte height; // Maintain the height of the row
+ Int height; // Maintain the height of the row; a Byte wrapped a 4K medal row negative
ListEntryCell *cell; // Holds the array of ListEntry Cells
} ListEntryRow;