mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 13:50:48 +00:00
- fixed: playersprite in the classic software renderer was acting oddly with a forced aspect ratio, similar to the bug fixed in ac566f4
This commit is contained in:
parent
1eda8aba6b
commit
e6b6cb354b
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ namespace swrenderer
|
||||||
auto viewport = Thread->Viewport.get();
|
auto viewport = Thread->Viewport.get();
|
||||||
|
|
||||||
double pspritexscale = viewport->viewwindow.centerxwide / 160.0;
|
double pspritexscale = viewport->viewwindow.centerxwide / 160.0;
|
||||||
double pspriteyscale = pspritexscale * viewport->BaseYaspectMul;
|
double pspriteyscale = pspritexscale * viewport->BaseYaspectMul * ((double)SCREENHEIGHT / SCREENWIDTH) * r_viewwindow.WidescreenRatio;
|
||||||
double pspritexiscale = 1 / pspritexscale;
|
double pspritexiscale = 1 / pspritexscale;
|
||||||
|
|
||||||
int tleft = tex->GetScaledLeftOffset();
|
int tleft = tex->GetScaledLeftOffset();
|
||||||
|
|
Loading…
Reference in a new issue