simplify font drawing a bit so we only have to move one function to pango

This commit is contained in:
Rudolf Polzer 2010-11-16 12:24:06 +01:00
parent bf2ca2011e
commit 5473ceccf9

View File

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