1
0
Fork 0
forked from fte/fteqw

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:
TimeServ 2005-09-30 03:12:01 +00:00
parent 11fa1bfbef
commit 81e7b2020d

View file

@ -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);