]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/xywindow.cpp
also detect being part of a warsow install
[xonotic/netradiant.git] / radiant / xywindow.cpp
index 0a6e9aebaef84c8eb1883a687203d7670a5dca49..9e6c1664ed946b2f41b3435a8468ce3359141c25 100644 (file)
@@ -1842,7 +1842,8 @@ void XYWnd::XY_DrawGrid(void) {
        // draw coordinate text if needed
        if ( g_xywindow_globals_private.show_coordinates) {
                glColor3fv(vector3_to_array(g_xywindow_globals.color_gridtext));
-               float offx = m_vOrigin[nDim2] + h - 6 / m_fScale, offy = m_vOrigin[nDim1] - w + 1 / m_fScale;
+               float offx = m_vOrigin[nDim2] + h - (1 + GlobalOpenGL().m_fontAscent) / m_fScale;
+               float offy = m_vOrigin[nDim1] - w +  1                                / m_fScale;
                for (x = xb - fmod(xb, stepx); x <= xe ; x += stepx) {
                        glRasterPos2f (x, offx);
                        sprintf (text, "%g", x);
@@ -2630,7 +2631,7 @@ void XY_Front()
   }
 
   XYWnd* xywnd = g_pParentWnd->GetXYWnd();
-  xywnd->SetViewType(XY);
+  xywnd->SetViewType(YZ);
   XYWnd_Focus(xywnd);
 }