Started addition of window_peep_resize

Not tested.
This commit is contained in:
Duncan 2014-08-20 12:52:27 +01:00 committed by Duncan Frost
parent 581114b1e5
commit 6524f27706
1 changed files with 25 additions and 0 deletions

View File

@ -189,3 +189,28 @@ void window_peep_close(){
tool_cancel();
}
}
/* rct2: 0x00696FBE */
void window_peep_resize(){
rct_window* w;
window_get_register(w);
RCT2_CALLPROC_EBPSAFE(0x6987a6);
RCT2_CALLPROC_EBPSAFE(w->eventhandler[WE_INVALIDATE]);
window_invalidate_by_id(0xA97,w->number);
w->min_width = 192;
w->max_width = 500;
w->min_height = 159;
w->max_height = 450;
if (w->min_width > w->width){
w->width = w->min_width;
window_invalidate(w);
}
//0x697002
}