mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix window update event call for old window code
This commit is contained in:
parent
8d9ff5daf1
commit
63561f396a
|
@ -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);
|
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
|
#ifdef _MSC_VER
|
||||||
__asm {
|
__asm {
|
||||||
push address
|
push address
|
||||||
|
@ -1695,6 +1693,11 @@ void window_event_update_call(rct_window *w)
|
||||||
#endif
|
#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
|
* rct2: New function not from rct2
|
||||||
* Bubbles an item one position up in the window list.
|
* Bubbles an item one position up in the window list.
|
||||||
|
|
Loading…
Reference in New Issue