(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.

This commit is contained in:
rubidium
2008-04-19 13:17:19 +00:00
parent 1dcf912f06
commit 24b5c91039
8 changed files with 10 additions and 10 deletions

View File

@@ -1751,7 +1751,7 @@ void ShowVehicleViewWindow(const Vehicle *v)
if (w != NULL) {
w->caption_color = v->owner;
AssignWindowViewport(w, VV_VIEWPORT_X, VV_VIEWPORT_Y, VV_INITIAL_VIEWPORT_WIDTH,
InitializeWindowViewport(w, VV_VIEWPORT_X, VV_VIEWPORT_Y, VV_INITIAL_VIEWPORT_WIDTH,
(v->type == VEH_TRAIN) ? VV_INITIAL_VIEWPORT_HEIGHT_TRAIN : VV_INITIAL_VIEWPORT_HEIGHT,
w->window_number | (1 << 31), _vehicle_view_zoom_levels[v->type]);
}