fix window update event call for old window code

This commit is contained in:
IntelOrca 2015-03-25 18:01:03 +00:00
parent 8d9ff5daf1
commit 63561f396a
1 changed files with 6 additions and 3 deletions

View File

@ -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.