summaryrefslogtreecommitdiff
path: root/src/FbTk/XFontImp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/XFontImp.cc')
-rw-r--r--src/FbTk/XFontImp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/XFontImp.cc b/src/FbTk/XFontImp.cc
index a94aa75..58bb07a 100644
--- a/src/FbTk/XFontImp.cc
+++ b/src/FbTk/XFontImp.cc
@@ -225,7 +225,7 @@ void XFontImp::rotate(FbTk::Orientation orient) {
225 // reserve memory for first XImage 225 // reserve memory for first XImage
226 vertdata = (unsigned char *)calloc((unsigned)(vert_len * vert_h), 1); 226 vertdata = (unsigned char *)calloc((unsigned)(vert_len * vert_h), 1);
227 227
228 XImage *I1 = XCreateImage(dpy, DefaultVisual(dpy, screen), 228 XImage *I1 = XCreateImage(dpy, App::instance()->defaultVisual(screen),
229 1, XYBitmap, 229 1, XYBitmap,
230 0, (char *)vertdata, 230 0, (char *)vertdata,
231 vert_w, vert_h, 8, 0); 231 vert_w, vert_h, 8, 0);
@@ -269,7 +269,7 @@ void XFontImp::rotate(FbTk::Orientation orient) {
269 bitdata = (unsigned char *)calloc((unsigned)(bit_h * bit_len), 1); 269 bitdata = (unsigned char *)calloc((unsigned)(bit_h * bit_len), 1);
270 270
271 // create the image 271 // create the image
272 XImage *I2 = XCreateImage(dpy, DefaultVisual(dpy, screen), 1, XYBitmap, 0, 272 XImage *I2 = XCreateImage(dpy, App::instance()->defaultVisual(screen), 1, XYBitmap, 0,
273 (char *)bitdata, bit_w, bit_h, 8, 0); 273 (char *)bitdata, bit_w, bit_h, 8, 0);
274 274
275 if (I2 == None) { 275 if (I2 == None) {