aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_mortdat
diff options
context:
space:
mode:
authorPaul Gilbert2012-01-05 07:56:45 +1100
committerStrangerke2012-04-06 08:19:27 +0200
commit1727798a8ea95574ecf6d43ec2fc071b6cb87d0b (patch)
tree38e969310f04a28aee9c92acd05ee0557083c6de /devtools/create_mortdat
parent60f287c85d146c0bc8eca96fb9570036426c4ec1 (diff)
downloadscummvm-rg350-1727798a8ea95574ecf6d43ec2fc071b6cb87d0b.tar.gz
scummvm-rg350-1727798a8ea95574ecf6d43ec2fc071b6cb87d0b.tar.bz2
scummvm-rg350-1727798a8ea95574ecf6d43ec2fc071b6cb87d0b.zip
MORTEVIELLE: Implemented loading of the font data, and rewrote drawing routines to use it.
Diffstat (limited to 'devtools/create_mortdat')
-rw-r--r--devtools/create_mortdat/create_mortdat.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/devtools/create_mortdat/create_mortdat.cpp b/devtools/create_mortdat/create_mortdat.cpp
index 62b81806bc..aa7da0169a 100644
--- a/devtools/create_mortdat/create_mortdat.cpp
+++ b/devtools/create_mortdat/create_mortdat.cpp
@@ -107,7 +107,7 @@ void openOutputFile(const char *outFilename) {
outputFile.open(outFilename, kFileWriteMode);
// Write header
- outputFile.write("mort", 4);
+ outputFile.write("MORT", 4);
outputFile.writeByte(VERSION_MAJOR);
outputFile.writeByte(VERSION_MINOR);
}
@@ -132,7 +132,9 @@ void process() {
// Write out a section header to the output file and the font data
char fontHeader[4] = { 'F', 'O', 'N', 'T' };
- outputFile.write(fontHeader, 4);
+ outputFile.write(fontHeader, 4); // Section Id
+ outputFile.writeWord(121 * 6); // Section size
+
outputFile.write(fontBuffer, 121 * 6);
}