From 5473ceccf9cf7aebaa0f03c60e4b3f16182d627f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 16 Nov 2010 12:24:06 +0100 Subject: [PATCH] simplify font drawing a bit so we only have to move one function to pango --- include/igl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/igl.h b/include/igl.h index 0662379..7ea3b94 100644 --- a/include/igl.h +++ b/include/igl.h @@ -2012,8 +2012,10 @@ struct OpenGLBinding /// \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(&character)); + char s[2]; + s[0] = character; + s[1] = 0; + drawString(s); } -- 2.39.2