Fix wrong viewport virtual size in InitializeWindowViewport

This commit is contained in:
Jonathan G Rennison
2020-04-12 18:38:28 +01:00
parent c00ef75ad0
commit 5ac240147e

View File

@@ -388,8 +388,8 @@ void InitializeWindowViewport(Window *w, int x, int y,
vp->virtual_left = 0; vp->virtual_left = 0;
vp->virtual_top = 0; vp->virtual_top = 0;
vp->virtual_width = ScaleByZoom(width, zoom); vp->virtual_width = ScaleByZoom(width, vp->zoom);
vp->virtual_height = ScaleByZoom(height, zoom); vp->virtual_height = ScaleByZoom(height, vp->zoom);
vp->map_type = VPMT_BEGIN; vp->map_type = VPMT_BEGIN;