mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
opengl: fix bottom and right edge of clip rect
This commit is contained in:
parent
6247d42971
commit
3a40352679
1 changed files with 2 additions and 2 deletions
|
|
@ -249,7 +249,7 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p
|
||||||
|
|
||||||
if ((cx + fwidth) > clip->right)
|
if ((cx + fwidth) > clip->right)
|
||||||
{
|
{
|
||||||
const float n = (clip->right - clip->left);
|
const float n = (clip->right - cx);
|
||||||
|
|
||||||
s_max = (s_min + ((n / fwidth) * s_max));
|
s_max = (s_min + ((n / fwidth) * s_max));
|
||||||
fwidth = n;
|
fwidth = n;
|
||||||
|
|
@ -257,7 +257,7 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p
|
||||||
|
|
||||||
if ((cy + fheight) > clip->bottom)
|
if ((cy + fheight) > clip->bottom)
|
||||||
{
|
{
|
||||||
const float n = (clip->bottom - clip->top);
|
const float n = (clip->bottom - cy);
|
||||||
|
|
||||||
t_max = (t_min + ((n / fheight) * t_max));
|
t_max = (t_min + ((n / fheight) * t_max));
|
||||||
fheight = n;
|
fheight = n;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue