mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
fix window update event call for old window code
This commit is contained in:
@@ -1671,10 +1671,8 @@ void window_event_invalidate_call(rct_window* w)
|
||||
RCT2_CALLPROC_X(w->event_handlers[WE_INVALIDATE], 0, 0, 0, 0, (int)w, 0, 0);
|
||||
}
|
||||
|
||||
void window_event_update_call(rct_window *w)
|
||||
static void window_event_call_address(int address, rct_window *w)
|
||||
{
|
||||
int address = w->event_handlers[WE_UPDATE];
|
||||
|
||||
#ifdef _MSC_VER
|
||||
__asm {
|
||||
push address
|
||||
@@ -1695,6 +1693,11 @@ void window_event_update_call(rct_window *w)
|
||||
#endif
|
||||
}
|
||||
|
||||
void window_event_update_call(rct_window *w)
|
||||
{
|
||||
window_event_call_address(w->event_handlers[WE_UPDATE], w);
|
||||
}
|
||||
|
||||
/**
|
||||
* rct2: New function not from rct2
|
||||
* Bubbles an item one position up in the window list.
|
||||
|
||||
Reference in New Issue
Block a user