]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
as a workaround, hardcode the font offset in the xy window again
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 18:59:12 +0000 (18:59 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 18:59:12 +0000 (18:59 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@350 61c419a2-8eb2-4b30-bcec-8cead039b335

radiant/xywindow.cpp

index 9e6c1664ed946b2f41b3435a8468ce3359141c25..2ab3247b165208e8b1a2d800bf67ede1ed386d4d 100644 (file)
@@ -1842,7 +1842,9 @@ 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 - (1 + GlobalOpenGL().m_fontAscent) / m_fScale;
+               // why does this not work on windows:
+               //   float offx = m_vOrigin[nDim2] + h - (1 + GlobalOpenGL().m_fontAscent) / m_fScale;
+               float offx = m_vOrigin[nDim2] + h - 14                                / m_fScale;
                float offy = m_vOrigin[nDim1] - w +  1                                / m_fScale;
                for (x = xb - fmod(xb, stepx); x <= xe ; x += stepx) {
                        glRasterPos2f (x, offx);