From 867d3d9a94b059a0bd7574f13e1c0c669abaf8a3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Jan 2003 01:31:47 +0000 Subject: [PATCH] rm consts that wont compile on some libfreetype's --- otk/font.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/otk/font.cc b/otk/font.cc index ac76696e..ee58ed19 100644 --- a/otk/font.cc +++ b/otk/font.cc @@ -100,11 +100,11 @@ void BFont::drawString(XftDraw *d, int x, int y, const BColor &color, if (utf8) XftDrawStringUtf8(d, &c, _xftfont, x + _offset, _xftfont->ascent + y + _offset, - (const FcChar8*)string.c_str(), string.size()); + (FcChar8*)string.c_str(), string.size()); else XftDrawString8(d, &c, _xftfont, x + _offset, _xftfont->ascent + y + _offset, - (const FcChar8*)string.c_str(), string.size()); + (FcChar8*)string.c_str(), string.size()); } XftColor c; @@ -116,10 +116,10 @@ void BFont::drawString(XftDraw *d, int x, int y, const BColor &color, if (utf8) XftDrawStringUtf8(d, &c, _xftfont, x, _xftfont->ascent + y, - (const FcChar8*)string.c_str(), string.size()); + (FcChar8*)string.c_str(), string.size()); else XftDrawString8(d, &c, _xftfont, x, _xftfont->ascent + y, - (const FcChar8*)string.c_str(), string.size()); + (FcChar8*)string.c_str(), string.size()); return; } @@ -131,10 +131,10 @@ unsigned int BFont::measureString(const string &string, bool utf8) const if (utf8) XftTextExtentsUtf8(OBDisplay::display, _xftfont, - (const FcChar8*)string.c_str(), string.size(), &info); + (FcChar8*)string.c_str(), string.size(), &info); else XftTextExtents8(OBDisplay::display, _xftfont, - (const FcChar8*)string.c_str(), string.size(), &info); + (FcChar8*)string.c_str(), string.size(), &info); return info.xOff + (_shadow ? _offset : 0); } -- 2.45.2