aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r--engines/gob/util.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index 429b0269cf..356eb3c643 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -379,38 +379,6 @@ void Util::setScrollOffset(int16 x, int16 y) {
_vm->_video->waitRetrace();
}
-Video::FontDesc *Util::loadFont(const char *path) {
- Video::FontDesc *fontDesc = new Video::FontDesc;
- byte *data;
-
- if (!fontDesc)
- return 0;
-
- data = _vm->_dataIO->getData(path);
- if (!data) {
- delete fontDesc;
- return 0;
- }
-
- fontDesc->dataPtr = data + 4;
- fontDesc->itemWidth = data[0] & 0x7F;
- fontDesc->itemHeight = data[1];
- fontDesc->startItem = data[2];
- fontDesc->endItem = data[3];
-
- fontDesc->itemSize =
- ((fontDesc->itemWidth - 1) / 8 + 1) * fontDesc->itemHeight;
- fontDesc->bitWidth = fontDesc->itemWidth;
-
- if (data[0] & 0x80)
- fontDesc->charWidths = data + 4 + fontDesc->itemSize *
- (fontDesc->endItem - fontDesc->startItem + 1);
- else
- fontDesc->charWidths = 0;
-
- return fontDesc;
-}
-
void Util::insertStr(const char *str1, char *str2, int16 pos) {
int len1 = strlen(str1);
int len2 = strlen(str2);