From bff064626342c64810dd0f9ddfe7cc9955125307 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Fri, 13 Dec 2019 17:21:40 +0900 Subject: [PATCH] Recalculate horizycent because ydim can be changed in renderSetTarget --- source/build/src/engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 2a2e87603..81cdea343 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -7316,6 +7316,7 @@ static void dosetaspect(void) { oxyaspect = xyaspect; j = xyaspect*320; + horizycent = (ydim*4)>>1; horizlookup2[horizycent-1] = divscale32(131072,j); for (i=0; i < horizycent-1; i++)