diff options
Diffstat (limited to 'src/FbTk/XmbFontImp.cc')
-rw-r--r-- | src/FbTk/XmbFontImp.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/FbTk/XmbFontImp.cc b/src/FbTk/XmbFontImp.cc index f33942a..87eed8f 100644 --- a/src/FbTk/XmbFontImp.cc +++ b/src/FbTk/XmbFontImp.cc | |||
@@ -209,7 +209,6 @@ void XmbFontImp::drawText(const FbDrawable &d, int screen, GC main_gc, const cha | |||
209 | } | 209 | } |
210 | 210 | ||
211 | Display *dpy = App::instance()->display(); | 211 | Display *dpy = App::instance()->display(); |
212 | Window rootwin = DefaultRootWindow(dpy); | ||
213 | 212 | ||
214 | int xpos = x, ypos = y; | 213 | int xpos = x, ypos = y; |
215 | unsigned int w = d.width(); | 214 | unsigned int w = d.width(); |
@@ -219,7 +218,7 @@ void XmbFontImp::drawText(const FbDrawable &d, int screen, GC main_gc, const cha | |||
219 | untranslateCoords(orient, xpos, ypos, w, h); | 218 | untranslateCoords(orient, xpos, ypos, w, h); |
220 | 219 | ||
221 | // not straight forward, we actually draw it elsewhere, then rotate it | 220 | // not straight forward, we actually draw it elsewhere, then rotate it |
222 | FbTk::FbPixmap canvas(rootwin, w, h, 1); | 221 | FbTk::FbPixmap canvas(d.drawable(), w, h, 1); |
223 | 222 | ||
224 | // create graphic context for our canvas | 223 | // create graphic context for our canvas |
225 | FbTk::GContext font_gc(canvas); | 224 | FbTk::GContext font_gc(canvas); |