mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- draw the crosshair using getHalfLookAng()
inline function, making use of its double precision and optionally interpolated result.
This commit is contained in:
parent
d3d9bb0823
commit
aead65183c
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ void displayrest(double smoothratio)
|
||||||
double crosshair_scale = cl_crosshairscale * .01;
|
double crosshair_scale = cl_crosshairscale * .01;
|
||||||
if (isRR()) crosshair_scale *= .5;
|
if (isRR()) crosshair_scale *= .5;
|
||||||
|
|
||||||
DrawTexture(twod, tileGetTexture(a), 160 - (ps[myconnectindex].getlookang() >> 1), 100,
|
DrawTexture(twod, tileGetTexture(a), 160 - getHalfLookAng(screenpeek, cl_syncinput, smoothratio), 100,
|
||||||
DTA_FullscreenScale, 3, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_ScaleX, crosshair_scale, DTA_ScaleY, crosshair_scale, DTA_CenterOffsetRel, true,
|
DTA_FullscreenScale, 3, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_ScaleX, crosshair_scale, DTA_ScaleY, crosshair_scale, DTA_CenterOffsetRel, true,
|
||||||
DTA_ViewportX, windowxy1.x, DTA_ViewportY, windowxy1.y, DTA_ViewportWidth, windowxy2.x - windowxy1.x + 1, DTA_ViewportHeight, windowxy2.y - windowxy1.y + 1, TAG_DONE);
|
DTA_ViewportX, windowxy1.x, DTA_ViewportY, windowxy1.y, DTA_ViewportWidth, windowxy2.x - windowxy1.x + 1, DTA_ViewportHeight, windowxy2.y - windowxy1.y + 1, TAG_DONE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue