mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -04:00
improve accuracy of off-screen calculation in patch drawing
Now Eviternity II st_bar works better with DRS.
This commit is contained in:
parent
e49d3d8844
commit
ea08151b83
@ -513,7 +513,7 @@ void V_DrawPatchInt(int x, int y, patch_t *patch, boolean flipped,
|
|||||||
else if (-x1 - 1 < maxw)
|
else if (-x1 - 1 < maxw)
|
||||||
x1 = -x2lookup[-x1 - 1];
|
x1 = -x2lookup[-x1 - 1];
|
||||||
else // too far off-screen
|
else // too far off-screen
|
||||||
x1 = -(video.width * (-x1 - 1) / maxw);
|
x1 = -(((-x1 - 1) * video.xscale) >> FRACBITS);
|
||||||
|
|
||||||
if (x2 < video.unscaledw)
|
if (x2 < video.unscaledw)
|
||||||
x2 = x2lookup[x2];
|
x2 = x2lookup[x2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user