]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
always use courier new 8 on win32 again
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 19:01:38 +0000 (19:01 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 19:01:38 +0000 (19:01 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@351 61c419a2-8eb2-4b30-bcec-8cead039b335

radiant/mainframe.cpp
radiant/xywindow.cpp

index d6f467dad5abdc3174de9817f257441a74282592..1555fa829b4ca3c7b56d56ba40aeec54d5208d5e 100644 (file)
@@ -3323,11 +3323,16 @@ void GlobalGL_sharedContextCreated()
   GlobalShaderCache().realise();
   Textures_Realise();
 
+#ifdef WIN32
+  /* win32 is dodgy here, just use courier new then */
+  g_font = glfont_create("courier new 8");
+#else
   /* use default font here (Sans 10 is gtk default) */
   GtkSettings *settings = gtk_settings_get_default();
   gchar *fontname;
   g_object_get(settings, "gtk-font-name", &fontname, NULL);
   g_font = glfont_create(fontname);
+#endif
 
   GlobalOpenGL().m_font = g_font.getDisplayList();
   GlobalOpenGL().m_fontHeight = g_font.getPixelHeight();
index 2ab3247b165208e8b1a2d800bf67ede1ed386d4d..f82b99baef4be1d40a2dfcde3551ac8b435a073a 100644 (file)
@@ -1844,7 +1844,7 @@ void XYWnd::XY_DrawGrid(void) {
                glColor3fv(vector3_to_array(g_xywindow_globals.color_gridtext));
                // 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 offx = m_vOrigin[nDim2] + h - 13                                / m_fScale;
                float offy = m_vOrigin[nDim1] - w +  1                                / m_fScale;
                for (x = xb - fmod(xb, stepx); x <= xe ; x += stepx) {
                        glRasterPos2f (x, offx);