File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3203,6 +3203,8 @@ itemDef_t *Menu_SetPrevCursorItem(menuDef_t *menu) {
32033203
32043204 if (Item_SetFocus (menu -> items [menu -> cursorItem ], DC -> cursorx , DC -> cursory )) {
32053205 Menu_HandleMouseMove (menu , menu -> items [menu -> cursorItem ]-> window .rect .x + 1 , menu -> items [menu -> cursorItem ]-> window .rect .y + 1 );
3206+ if ( oldCursor > 0 && menu -> items [oldCursor ] )
3207+ Item_MouseLeave (menu -> items [oldCursor ]); // Stop highlighting the last element.
32063208 return menu -> items [menu -> cursorItem ];
32073209 }
32083210 }
@@ -3231,6 +3233,8 @@ itemDef_t *Menu_SetNextCursorItem(menuDef_t *menu) {
32313233 }
32323234 if (Item_SetFocus (menu -> items [menu -> cursorItem ], DC -> cursorx , DC -> cursory )) {
32333235 Menu_HandleMouseMove (menu , menu -> items [menu -> cursorItem ]-> window .rect .x + 1 , menu -> items [menu -> cursorItem ]-> window .rect .y + 1 );
3236+ if ( oldCursor > 0 && menu -> items [oldCursor ] )
3237+ Item_MouseLeave (menu -> items [oldCursor ]); // Stop highlighting the last element.
32343238 return menu -> items [menu -> cursorItem ];
32353239 }
32363240
You can’t perform that action at this time.
0 commit comments