diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-08 21:30:30 +0100 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-08 21:30:30 +0100 |
commit | 00d23c61d99a0a676de2219da42d576b5c5c0474 (patch) | |
tree | 2a6d74663312bdb01b5ae1fd9abbd1c8fc5d857f /src/render/Draw.cpp | |
parent | Merge pull request #909 from Fire-Head/master (diff) | |
download | re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.gz re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.bz2 re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.lz re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.xz re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.zst re3-00d23c61d99a0a676de2219da42d576b5c5c0474.zip |
Diffstat (limited to 'src/render/Draw.cpp')
-rw-r--r-- | src/render/Draw.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/render/Draw.cpp b/src/render/Draw.cpp index fcd5d18f..f2fdad27 100644 --- a/src/render/Draw.cpp +++ b/src/render/Draw.cpp @@ -20,6 +20,16 @@ uint8 CDraw::FadeRed; uint8 CDraw::FadeGreen; uint8 CDraw::FadeBlue; +#ifdef PROPER_SCALING +int32 CDraw::ms_bProperScaling = true; +#endif +#ifdef FIX_SPRITES +int32 CDraw::ms_bFixRadar = true; +#endif +#ifdef FIX_RADAR +int32 CDraw::ms_bFixSprites = true; +#endif + float CDraw::FindAspectRatio(void) { @@ -75,4 +85,11 @@ CDraw::SetFOV(float fov) ms_fScaledFOV = fov; #endif ms_fFOV = fov; -}
\ No newline at end of file +} + +#ifdef PROPER_SCALING +float CDraw::ScaleY(float y) +{ + return ms_bProperScaling ? y : y * ((float)DEFAULT_SCREEN_HEIGHT/SCREEN_HEIGHT_NTSC); +} +#endif
\ No newline at end of file |