summaryrefslogtreecommitdiff
path: root/src/FbTk/XftFontImp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/XftFontImp.cc')
-rw-r--r--src/FbTk/XftFontImp.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/FbTk/XftFontImp.cc b/src/FbTk/XftFontImp.cc
index 80eb2c4..fe5b8e6 100644
--- a/src/FbTk/XftFontImp.cc
+++ b/src/FbTk/XftFontImp.cc
@@ -102,8 +102,8 @@ void XftFontImp::drawText(const FbDrawable &w, int screen, GC gc, const FbString
102 102
103 XftDraw *draw = XftDrawCreate(w.display(), 103 XftDraw *draw = XftDrawCreate(w.display(),
104 w.drawable(), 104 w.drawable(),
105 DefaultVisual(w.display(), screen), 105 App::instance()->defaultVisual(screen),
106 DefaultColormap(w.display(), screen)); 106 App::instance()->defaultColormap(screen));
107 107
108 XGCValues gc_val; 108 XGCValues gc_val;
109 109
@@ -114,7 +114,7 @@ void XftFontImp::drawText(const FbDrawable &w, int screen, GC gc, const FbString
114 // get red, green, blue values 114 // get red, green, blue values
115 XColor xcol; 115 XColor xcol;
116 xcol.pixel = gc_val.foreground; 116 xcol.pixel = gc_val.foreground;
117 XQueryColor(w.display(), DefaultColormap(w.display(), screen), &xcol); 117 XQueryColor(w.display(), App::instance()->defaultColormap(screen), &xcol);
118 118
119 // convert xcolor to XftColor 119 // convert xcolor to XftColor
120 XRenderColor rendcol; 120 XRenderColor rendcol;
@@ -124,8 +124,8 @@ void XftFontImp::drawText(const FbDrawable &w, int screen, GC gc, const FbString
124 rendcol.alpha = 0xFFFF; 124 rendcol.alpha = 0xFFFF;
125 XftColor xftcolor; 125 XftColor xftcolor;
126 XftColorAllocValue(w.display(), 126 XftColorAllocValue(w.display(),
127 DefaultVisual(w.display(), screen), 127 App::instance()->defaultVisual(screen),
128 DefaultColormap(w.display(), screen), 128 App::instance()->defaultColormap(screen),
129 &rendcol, &xftcolor); 129 &rendcol, &xftcolor);
130 130
131 // draw string 131 // draw string
@@ -145,8 +145,8 @@ void XftFontImp::drawText(const FbDrawable &w, int screen, GC gc, const FbString
145 x, y, 145 x, y,
146 (XftChar8 *)(text.data()), len); 146 (XftChar8 *)(text.data()), len);
147 XftColorFree(w.display(), 147 XftColorFree(w.display(),
148 DefaultVisual(w.display(), screen), 148 App::instance()->defaultVisual(screen),
149 DefaultColormap(w.display(), screen), &xftcolor); 149 App::instance()->defaultColormap(screen), &xftcolor);
150 XftDrawDestroy(draw); 150 XftDrawDestroy(draw);
151 return; 151 return;
152 } 152 }
@@ -161,8 +161,8 @@ void XftFontImp::drawText(const FbDrawable &w, int screen, GC gc, const FbString
161 161
162 162
163 XftColorFree(w.display(), 163 XftColorFree(w.display(),
164 DefaultVisual(w.display(), screen), 164 App::instance()->defaultVisual(screen),
165 DefaultColormap(w.display(), screen), &xftcolor); 165 App::instance()->defaultColormap(screen), &xftcolor);
166 XftDrawDestroy(draw); 166 XftDrawDestroy(draw);
167} 167}
168 168