BredaUniversityGames / DXX-Raytracer

DXX Raytracer is a fork of the DXX Retro project for Windows. DXX Raytracer uses modern raytracing techniques to update the graphics of the beloved retro game known as Descent.
Other
216 stars 10 forks source link

fix automap aspect ratio #17

Closed jstanley0 closed 3 months ago

jstanley0 commented 6 months ago

g3_start_frame (used by automap among others) expects grd_curscreen->sc_aspect to be the pixel aspect ratio (i.e., 1_0f in a mode with square pixels) and not the screen aspect ratio

otherwise on a 16:9 screen automap shapes end up squished horizontally by a factor of 9/16

this change makes the sc_aspect setup code match what is done in other source ports (and also matches d1\arch\sdl\gr.c)