diff options
author | simonb <simonb> | 2007-01-05 13:43:54 (GMT) |
---|---|---|
committer | simonb <simonb> | 2007-01-05 13:43:54 (GMT) |
commit | ad7fd2d8675141925bdef7c29d3392d6ac6b0db0 (patch) | |
tree | 776c13dccaecc0eeb54c514040ac00a74f347a99 /src/FbTk/XFontImp.hh | |
parent | 3a79de034f87df155f540af2186c5d87dc187b3b (diff) | |
download | fluxbox-ad7fd2d8675141925bdef7c29d3392d6ac6b0db0.zip fluxbox-ad7fd2d8675141925bdef7c29d3392d6ac6b0db0.tar.bz2 |
fix loading of rotated fonts on style change
Diffstat (limited to 'src/FbTk/XFontImp.hh')
-rw-r--r-- | src/FbTk/XFontImp.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/XFontImp.hh b/src/FbTk/XFontImp.hh index 02f17ee..d491a07 100644 --- a/src/FbTk/XFontImp.hh +++ b/src/FbTk/XFontImp.hh | |||
@@ -40,7 +40,7 @@ public: | |||
40 | unsigned int height() const; | 40 | unsigned int height() const; |
41 | int ascent() const; | 41 | int ascent() const; |
42 | int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; } | 42 | int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; } |
43 | void drawText(const FbDrawable &w, int screen, GC gc, const FbString &text, size_t len, int x, int y, FbTk::Orientation orient) const; | 43 | void drawText(const FbDrawable &w, int screen, GC gc, const FbString &text, size_t len, int x, int y, FbTk::Orientation orient); |
44 | 44 | ||
45 | bool validOrientation(FbTk::Orientation orient); | 45 | bool validOrientation(FbTk::Orientation orient); |
46 | 46 | ||
@@ -79,6 +79,7 @@ private: | |||
79 | void drawRotText(Drawable w, int screen, GC gc, const FbString &text, size_t len, int x, int y, FbTk::Orientation orient) const; | 79 | void drawRotText(Drawable w, int screen, GC gc, const FbString &text, size_t len, int x, int y, FbTk::Orientation orient) const; |
80 | 80 | ||
81 | XRotFontStruct *m_rotfonts[4]; ///< rotated font structure (only 3 used) | 81 | XRotFontStruct *m_rotfonts[4]; ///< rotated font structure (only 3 used) |
82 | bool m_rotfonts_loaded[4]; // whether we've tried yet | ||
82 | XFontStruct *m_fontstruct; ///< X font structure | 83 | XFontStruct *m_fontstruct; ///< X font structure |
83 | 84 | ||
84 | }; | 85 | }; |