mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- cleanup of 3D viewport code.
Removes all the hackery that Polymost needed and now uses a sane struct to store the info.
This commit is contained in:
parent
4ec748a92b
commit
c2fc7577db
29 changed files with 192 additions and 221 deletions
|
@ -65,8 +65,8 @@ void hud_drawsprite(double sx, double sy, double sz, double a, int picnum, int d
|
|||
DTA_ScaleX, sz, DTA_ScaleY, sz,
|
||||
DTA_Color, shadeToLight(dashade),
|
||||
DTA_TranslationIndex, palid,
|
||||
DTA_ViewportX, windowxy1.X, DTA_ViewportY, windowxy1.Y,
|
||||
DTA_ViewportWidth, windowxy2.X - windowxy1.X + 1, DTA_ViewportHeight, windowxy2.Y - windowxy1.Y + 1,
|
||||
DTA_ViewportX, viewport3d.Left(), DTA_ViewportY, viewport3d.Top(),
|
||||
DTA_ViewportWidth, viewport3d.Width(), DTA_ViewportHeight, viewport3d.Height(),
|
||||
DTA_FullscreenScale, (dastat & RS_STRETCH)? FSMode_ScaleToScreen: FSMode_ScaleToHeight, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200,
|
||||
DTA_CenterOffsetRel, (dastat & (RS_TOPLEFT | RS_CENTER))? 0:2,
|
||||
DTA_TopLeft, !!(dastat & RS_TOPLEFT),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue