aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XmbFontImp.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 18:48:01 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 18:48:01 (GMT)
commit26c1cd0ceeb289abdf9ddfecdc699a27db8b0339 (patch)
tree8c71509d438106a831526645d418c889d1ce54ad /src/FbTk/XmbFontImp.cc
parent08bd29d0d83756944b35a312497fbadcde9d74fe (diff)
downloadfluxbox-26c1cd0ceeb289abdf9ddfecdc699a27db8b0339.zip
fluxbox-26c1cd0ceeb289abdf9ddfecdc699a27db8b0339.tar.bz2
code simplification
Diffstat (limited to 'src/FbTk/XmbFontImp.cc')
-rw-r--r--src/FbTk/XmbFontImp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/XmbFontImp.cc b/src/FbTk/XmbFontImp.cc
index 7613a40..8f2bdf9 100644
--- a/src/FbTk/XmbFontImp.cc
+++ b/src/FbTk/XmbFontImp.cc
@@ -204,7 +204,7 @@ void XmbFontImp::drawText(const FbDrawable &d, int screen, GC main_gc, const cha
204 } else 204 } else
205#endif //X_HAVE_UTF8_STRING 205#endif //X_HAVE_UTF8_STRING
206 { 206 {
207 std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, 0, len)); 207 std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, len));
208 XmbDrawString(d.display(), d.drawable(), m_fontset, 208 XmbDrawString(d.display(), d.drawable(), m_fontset,
209 main_gc, x, y, 209 main_gc, x, y,
210 localestr.data(), localestr.size()); 210 localestr.data(), localestr.size());
@@ -241,7 +241,7 @@ void XmbFontImp::drawText(const FbDrawable &d, int screen, GC main_gc, const cha
241 } else 241 } else
242#endif //X_HAVE_UTF8_STRING 242#endif //X_HAVE_UTF8_STRING
243 { 243 {
244 std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, 0, len)); 244 std::string localestr = FbStringUtil::FbStrToLocale(FbString(text, len));
245 XmbDrawString(dpy, canvas.drawable(), m_fontset, 245 XmbDrawString(dpy, canvas.drawable(), m_fontset,
246 font_gc.gc(), xpos, ypos, 246 font_gc.gc(), xpos, ypos,
247 localestr.data(), localestr.size()); 247 localestr.data(), localestr.size());