crosshair position fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1403 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
11fa1bfbef
commit
81e7b2020d
1 changed files with 5 additions and 4 deletions
|
@ -1401,10 +1401,11 @@ void GLDraw_Crosshair(void)
|
||||||
SCR_CrosshairPosition(sc, &x, &y);
|
SCR_CrosshairPosition(sc, &x, &y);
|
||||||
|
|
||||||
size = crosshairsize.value;
|
size = crosshairsize.value;
|
||||||
x1 = x - size;
|
// (size / 16) is needed to assure it's exactly centered
|
||||||
x2 = x + size;
|
x1 = x - size - (size / 16);
|
||||||
y1 = y - size;
|
x2 = x + size - (size / 16);
|
||||||
y2 = y + size;
|
y1 = y - size - (size / 16);
|
||||||
|
y2 = y + size - (size / 16);
|
||||||
qglBegin (GL_QUADS);
|
qglBegin (GL_QUADS);
|
||||||
qglTexCoord2f (0, 0);
|
qglTexCoord2f (0, 0);
|
||||||
qglVertex2f (x1, y1);
|
qglVertex2f (x1, y1);
|
||||||
|
|
Loading…
Reference in a new issue