1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Merge pull request #280 from duncanspumpkin/gfx_invalidate_window

Added gfx_invalidate_window
This commit is contained in:
Ted John
2014-08-14 09:02:29 +01:00
3 changed files with 5 additions and 5 deletions

View File

@@ -642,7 +642,7 @@ int window_find_widget_from_point(rct_window *w, int x, int y)
/**
* Invalidates the specified window.
* rct2: 0x006EB31A
* rct2: 0x006EB13A
*
* @param window The window to invalidate (esi).
*/
@@ -924,7 +924,7 @@ void window_zoom_in(rct_window *w)
w->saved_view_x += v->view_width >> 1;
w->saved_view_y += v->view_height >> 1;
RCT2_CALLPROC_X(0x006EB13A, 0, 0, 0, 0, (int)w, 0, 0);
window_invalidate(w);
}
/**
@@ -951,7 +951,7 @@ void window_zoom_out(rct_window *w)
w->saved_view_x -= width / 2;
w->saved_view_y -= height >> 1;
RCT2_CALLPROC_X(0x006EB13A, 0, 0, 0, 0, (int)w, 0, 0);
window_invalidate(w);
}
/**

View File

@@ -447,7 +447,7 @@ static void window_game_top_toolbar_dropdown()
default:
return;
}
RCT2_CALLPROC_X(0x6EB13A, 0, 0, 0, 0, (int)w, 0, 0);
window_invalidate(w);
}
}
}

View File

@@ -161,7 +161,7 @@ void window_peep_open(rct_peep* peep){
}
window->page = 0;
RCT2_CALLPROC_X(0x006EB13A, 0, 0, 0, 0, (int)window, 0, 0);
window_invalidate(window);
window->widgets = RCT2_GLOBAL(0x981D0C, rct_widget*);
window->enabled_widgets = RCT2_GLOBAL(0x981D3C,uint32);