]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
simplify font drawing a bit so we only have to move one function to pango
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 16 Nov 2010 11:24:06 +0000 (12:24 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 16 Nov 2010 11:24:06 +0000 (12:24 +0100)
include/igl.h

index 0662379e8323593c148a7f86c1fa314b4c1c17f3..7ea3b944d93d33ec27dc9e460f360d5c7786c4ca 100644 (file)
@@ -2012,8 +2012,10 @@ struct OpenGLBinding
   /// \brief Renders \p character at the current raster-position of the current context.
   void drawChar(char character) const
   {
   /// \brief Renders \p character at the current raster-position of the current context.
   void drawChar(char character) const
   {
-    m_glListBase(m_font);
-    m_glCallLists(1, GL_UNSIGNED_BYTE, reinterpret_cast<const GLubyte*>(&character));
+    char s[2];
+    s[0] = character;
+    s[1] = 0;
+    drawString(s);
   }
 
 
   }