summaryrefslogtreecommitdiffstats
path: root/kpacman/bitfont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman/bitfont.cpp')
-rw-r--r--kpacman/bitfont.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpacman/bitfont.cpp b/kpacman/bitfont.cpp
index 40581c8..91b4baa 100644
--- a/kpacman/bitfont.cpp
+++ b/kpacman/bitfont.cpp
@@ -1,6 +1,6 @@
#include "bitfont.h"
-Bitfont::Bitfont(QString fontname, uchar firstChar, uchar lastChar)
+Bitfont::Bitfont(TQString fontname, uchar firstChar, uchar lastChar)
{
if (!fontname.isEmpty())
font.load(fontname);
@@ -16,15 +16,15 @@ Bitfont::Bitfont(QString fontname, uchar firstChar, uchar lastChar)
}
}
-QRect Bitfont::rect(QString str)
+TQRect Bitfont::rect(TQString str)
{
- return QRect(0, 0, str.length()*fontWidth, fontHeight);
+ return TQRect(0, 0, str.length()*fontWidth, fontHeight);
}
-QPixmap Bitfont::text(QString str, QColor fg, QColor bg)
+TQPixmap Bitfont::text(TQString str, TQColor fg, TQColor bg)
{
- QPixmap FG(str.length()*fontWidth, fontHeight);
- QBitmap MASK(str.length()*fontWidth, fontHeight, TRUE);
+ TQPixmap FG(str.length()*fontWidth, fontHeight);
+ TQBitmap MASK(str.length()*fontWidth, fontHeight, TRUE);
const uchar *s = (const uchar *) str.data();
for (uint i = 0; i < str.length(); i++) {
@@ -42,7 +42,7 @@ QPixmap Bitfont::text(QString str, QColor fg, QColor bg)
FG.setMask(MASK);
if (bg.isValid()) {
- QPixmap BG(str.length()*fontWidth, fontHeight);
+ TQPixmap BG(str.length()*fontWidth, fontHeight);
BG.fill(bg);
bitBlt(&BG, 0, 0, &FG);
return BG;