Skip to content
Snippets Groups Projects
Commit e05eea01 authored by Hanicef's avatar Hanicef
Browse files

Improve HUD rendering when drawing stretched patches

parent 366b7113
Branches
No related tags found
No related merge requests found
...@@ -256,8 +256,8 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p ...@@ -256,8 +256,8 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p
} }
// positions of the cx, cy, are between 0 and vid.width/vid.height now, we need them to be between -1 and 1 // positions of the cx, cy, are between 0 and vid.width/vid.height now, we need them to be between -1 and 1
cx = -1 + (cx / (vid.width/2)); cx = -1.0f + (cx / (vid.width / 2.0f));
cy = 1 - (cy / (vid.height/2)); cy = 1.0f - (cy / (vid.height / 2.0f));
// fwidth and fheight are similar // fwidth and fheight are similar
fwidth /= vid.width / 2; fwidth /= vid.width / 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment