]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
xywindow: draw the x/y/z border properly
authorRudolf Polzer <divVerent@xonotic.org>
Thu, 18 Nov 2010 11:56:21 +0000 (12:56 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Thu, 18 Nov 2010 11:56:21 +0000 (12:56 +0100)
radiant/xywindow.cpp

index 567d17f729326d5ebb342338e2fae36dd26c07cc..857e7b998a43db68f4603de491161ef2d1d0f2bd 100644 (file)
@@ -2522,10 +2522,10 @@ void XYWnd::XY_Draw()
         }
       }
       glBegin (GL_LINE_LOOP);
-      glVertex2i (0, 0);
-      glVertex2i (m_nWidth-1, 0);
-      glVertex2i (m_nWidth-1, m_nHeight-1);
-      glVertex2i (0, m_nHeight-1);
+      glVertex2f (0.5, 0.5);
+      glVertex2f (m_nWidth-0.5, 1);
+      glVertex2f (m_nWidth-0.5, m_nHeight-0.5);
+      glVertex2f (0.5, m_nHeight-0.5);
       glEnd();
     }
   }