Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 3cc34b0

Browse files
committed
[17751] Correct the loc of option menus triggered by a popup stack
1 parent 7b90b69 commit 3cc34b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/src/desktop-menu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,12 @@ void MCButton::macopenmenu(void)
374374
{
375375
case WM_COMBO:
376376
case WM_OPTION:
377-
trect = MCU_recttoroot(MCmousestackptr, rect);
377+
trect = MCU_recttoroot(getstack(), rect);
378378
tmenux = trect.x;
379379
tmenuy = trect.y;
380380
break;
381381
case WM_PULLDOWN:
382-
trect = MCU_recttoroot(MCmousestackptr, rect);
382+
trect = MCU_recttoroot(getstack(), rect);
383383
tmenux = trect.x;
384384
tmenuy = trect.y+trect.height + 1;
385385
break;

0 commit comments

Comments
 (0)