diff options
Diffstat (limited to 'src/FbTk/XFontImp.cc')
-rw-r--r-- | src/FbTk/XFontImp.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/XFontImp.cc b/src/FbTk/XFontImp.cc index 5b61555..eeb0830 100644 --- a/src/FbTk/XFontImp.cc +++ b/src/FbTk/XFontImp.cc | |||
@@ -79,9 +79,10 @@ bool XFontImp::load(const std::string &fontname) { | |||
79 | return true; | 79 | return true; |
80 | } | 80 | } |
81 | 81 | ||
82 | void XFontImp::drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y) const { | 82 | void XFontImp::drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y, FbTk::Orientation orient) const { |
83 | if (m_fontstruct == 0) | 83 | if (m_fontstruct == 0) |
84 | return; | 84 | return; |
85 | |||
85 | // use roated font functions? | 86 | // use roated font functions? |
86 | if (m_rotfont != 0 && m_rotate) { | 87 | if (m_rotfont != 0 && m_rotate) { |
87 | drawRotText(w.drawable(), screen, gc, text, len, x, y); | 88 | drawRotText(w.drawable(), screen, gc, text, len, x, y); |
@@ -110,7 +111,7 @@ unsigned int XFontImp::height() const { | |||
110 | return m_fontstruct->ascent + m_fontstruct->descent; | 111 | return m_fontstruct->ascent + m_fontstruct->descent; |
111 | } | 112 | } |
112 | 113 | ||
113 | void XFontImp::rotate(float angle) { | 114 | void XFontImp::rotate(int angle) { |
114 | //we must have a font loaded before we rotate | 115 | //we must have a font loaded before we rotate |
115 | if (m_fontstruct == 0 || m_fontstruct->per_char == 0) | 116 | if (m_fontstruct == 0 || m_fontstruct->per_char == 0) |
116 | return; | 117 | return; |