xywindow: draw the x/y/z border properly

This commit is contained in:
Rudolf Polzer 2010-11-18 12:56:21 +01:00
parent e240a832bd
commit 8f059eb592

View File

@ -2522,10 +2522,10 @@ void XYWnd::XY_Draw()
} }
} }
glBegin (GL_LINE_LOOP); glBegin (GL_LINE_LOOP);
glVertex2i (0, 0); glVertex2f (0.5, 0.5);
glVertex2i (m_nWidth-1, 0); glVertex2f (m_nWidth-0.5, 1);
glVertex2i (m_nWidth-1, m_nHeight-1); glVertex2f (m_nWidth-0.5, m_nHeight-0.5);
glVertex2i (0, m_nHeight-1); glVertex2f (0.5, m_nHeight-0.5);
glEnd(); glEnd();
} }
} }