diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-04 01:31:47 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-04 01:31:47 +0000 |
| commit | 867d3d9a94b059a0bd7574f13e1c0c669abaf8a3 (patch) | |
| tree | ffdd67223e2323e2caa30179bda4ea239a3677be | |
| parent | 06eb14fbeb568639404496a2dc6a0fe6cdd3d7b7 (diff) | |
rm consts that wont compile on some libfreetype's
| -rw-r--r-- | otk/font.cc | 12 |
1 files 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); } |
