From 7621d3e105791397e8c434d8ee1e61eb4be74c8a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 4 Nov 2020 22:30:11 +0100 Subject: [PATCH] - removed redundant dosetaspect function. This was software rendering only. --- source/build/src/engine.cpp | 54 ------------------------------------- 1 file changed, 54 deletions(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index b36c67ada..3b90f2075 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -69,8 +69,6 @@ int32_t voxscale[MAXVOXELS]; static int32_t beforedrawrooms = 1; -static int32_t oxdimen = -1, oviewingrange = -1, oxyaspect = -1; - int32_t globalflags; static int8_t tempbuf[MAXWALLS]; @@ -399,49 +397,6 @@ static inline void initksqrt(void) } } - -// -// dosetaspect -// -static void dosetaspect(void) -{ - int32_t i, j; - - if (xyaspect != oxyaspect) - { - oxyaspect = xyaspect; - j = xyaspect*320; - } - - if (xdimen != oxdimen || viewingrange != oviewingrange) - { - int32_t k, x, xinc; - - no_radarang2 = 0; - oviewingrange = viewingrange; - - xinc = mulscale32(viewingrange*2560,xdimenrecip); - x = IntToFixed(5120)-mulscale1(xinc,xdimen); - - for (i=0; i= (int32_t)countof(qradarang)-1) - { - no_radarang2 = 1; - break; - } - - if (j != 0) - j = mulscale16(qradarang[k+1]-qradarang[k], j); - } - - oxdimen = xdimen; - } -} - - static int32_t engineLoadTables(void) { static char tablesloaded = 0; @@ -1092,9 +1047,6 @@ int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz, globalcursectnum = dacursectnum; - if ((xyaspect != oxyaspect) || (xdimen != oxdimen) || (viewingrange != oviewingrange)) - dosetaspect(); - memset(gotsector, 0, sizeof(gotsector)); i = xdimen-1; @@ -1921,9 +1873,6 @@ void renderDrawMapView(int32_t dax, int32_t day, int32_t zoome, int16_t ang) renderFillPolygon(npoints); } } - - - renderSetAspect(oviewingrange, oyxaspect); } // @@ -1957,9 +1906,6 @@ int32_t videoSetGameMode(char davidoption, int32_t daupscaledxdim, int32_t daups j = ydim*4; //Leave room for horizlookup&horizlookup2 - //Force drawrooms to call dosetaspect & recalculate stuff - oxyaspect = oxdimen = oviewingrange = -1; - videoSetViewableArea(0L,0L,xdim-1,ydim-1); videoClearScreen(0L);