summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2003-04-08 06:56:33 +0000
committerpixel <pixel>2003-04-08 06:56:33 +0000
commit7020205df6d5d0b5d63849fcc55d72e415b256aa (patch)
treee7933756d6d97c26a55800cbf531d3ff3222cadd /lib
parentadb4a8774c3eae561032a51e219aff7a9b3f73c7 (diff)
Reporting some error messages
Diffstat (limited to 'lib')
-rw-r--r--lib/font.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/font.cc b/lib/font.cc
index d878399..12363aa 100644
--- a/lib/font.cc
+++ b/lib/font.cc
@@ -101,12 +101,14 @@ mogltk::ColorP colorcached[16] = {
mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), wspace(0) {
int i, j;
+ printm(M_INFO, "Reading font header\n");
nbentries = ffont->readU16();
flags = ffont->readU8();
maxX = ffont->readU8();
maxY = ffont->readU8();
base = ffont->readU8();
inter = ffont->readU8();
+ printm(M_INFO, "Reading at offset 0x%x\n", ffont->tell());
nbcU = 256 / maxX;
nbcV = 256 / maxY;
@@ -140,6 +142,7 @@ mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), w
Uint8 * curtex = (Uint8 *) fonttex[0]->GetSurface()->pixels;
Uint32 curU = 0, curV = 0, curT = 0;
for (i = 0; i < nbentries; i++) {
+ printm(M_INFO, "Reading entry %i at offset 0x%x\n", ffont->tell());
sizes[i] = ffont->readU8();
for (int v = 0; v < maxY; v++) {
for (int u = 0; u < maxX; u++) {
@@ -176,6 +179,7 @@ mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), w
corresp = (Uint16 *) malloc(nbentries * 2 * sizeof(Uint16));
for (i = 0; i < 2 * nbentries; i++) {
+ printm(M_INFO, "Reading translation entry number %i at offset 0x%x\n", i, ffont->tell());
corresp[i] = ffont->readU16();
}
}