Skip to content

Commit bdb00e9

Browse files
bugfix(gui): Fix application hang from scrolling a map list with arrow keys (TheSuperHackers#2281)
1 parent dfe447b commit bdb00e9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • GeneralsMD/Code/GameEngine/Include/GameClient
  • Generals/Code/GameEngine/Include/GameClient

Generals/Code/GameEngine/Include/GameClient/Gadget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,11 @@ typedef struct _ListboxData
371371
Int selectPos; // Position of current selected entry (for SINGLE select)
372372
Int *selections; // Pointer to array of selections (for MULTI select)
373373

374-
Short displayHeight; // Height in pixels of listbox display region
374+
Int displayHeight; // Height in pixels of listbox display region
375375
// this is computed based on the existence
376376
// of a title or not.
377377
UnsignedInt doubleClickTime; //
378-
Short displayPos; // Position of current display entry in pixels
378+
Int displayPos; // Position of current display entry in pixels
379379

380380
} ListboxData;
381381

GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,11 @@ typedef struct _ListboxData
374374
Int selectPos; // Position of current selected entry (for SINGLE select)
375375
Int *selections; // Pointer to array of selections (for MULTI select)
376376

377-
Short displayHeight; // Height in pixels of listbox display region
377+
Int displayHeight; // Height in pixels of listbox display region
378378
// this is computed based on the existence
379379
// of a title or not.
380380
UnsignedInt doubleClickTime; //
381-
Short displayPos; // Position of current display entry in pixels
381+
Int displayPos; // Position of current display entry in pixels
382382

383383
} ListboxData;
384384

0 commit comments

Comments
 (0)