mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- always apply vid_scalefactor now, even when vid_scalemode is not 0 or 1.
# Conflicts: # src/r_videoscale.cpp
This commit is contained in:
parent
e176410ab6
commit
b7d22e2b1e
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ int ViewportScaledWidth(int width, int height)
|
|||
vid_scalemode = 0;
|
||||
if (vid_cropaspect && height > 0)
|
||||
width = ((float)width/height > ActiveRatio(width, height)) ? (int)(height * ActiveRatio(width, height)) : width;
|
||||
return (int)MAX((int32_t)160, (int32_t)vScaleTable[vid_scalemode].GetScaledWidth((int)((float)width * vid_scalefactor)));
|
||||
return (int)MAX((int32_t)160, (int32_t)(vid_scalefactor * vScaleTable[vid_scalemode].GetScaledWidth(width)));
|
||||
}
|
||||
|
||||
int ViewportScaledHeight(int width, int height)
|
||||
|
@ -122,7 +122,7 @@ int ViewportScaledHeight(int width, int height)
|
|||
vid_scalemode = 0;
|
||||
if (vid_cropaspect && height > 0)
|
||||
height = ((float)width/height < ActiveRatio(width, height)) ? (int)(width / ActiveRatio(width, height)) : height;
|
||||
return (int)MAX((int32_t)100, (int32_t)vScaleTable[vid_scalemode].GetScaledHeight((int)((float)height * vid_scalefactor)));
|
||||
return (int)MAX((int32_t)100, (int32_t)(vid_scalefactor * vScaleTable[vid_scalemode].GetScaledHeight(height)));
|
||||
}
|
||||
|
||||
bool ViewportIsScaled43()
|
||||
|
|
Loading…
Reference in a new issue