X Tutup
Skip to content

Commit 51f7085

Browse files
committed
HUGO: Remove font data from HUGO.DAT
- Removes Windows font data from HUGO.DAT - Uses Graphics::DosFont for Windows interface in DOS versions The font data in HUGO.DAT was a temporary workaround until DOS versions could draw their own font. (HUGO.DAT regenerated in next commit)
1 parent 1948712 commit 51f7085

File tree

7 files changed

+121
-353
lines changed

7 files changed

+121
-353
lines changed

devtools/create_hugo/create_hugo.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include "staticmouse.h"
4242
#include "staticparser.h"
4343
#include "staticutil.h"
44-
#include "staticfont.h"
4544

4645
static void writeByte(FILE *fp, uint8 b) {
4746
fwrite(&b, 1, 1, fp);
@@ -93,29 +92,6 @@ int main(int argc, char *argv[]) {
9392
writeByte(outFile, _palette[i]);
9493
}
9594

96-
// The following fonts info have been added to avoid temporarly the .FON
97-
// used in the DOS version
98-
// font5
99-
nbrElem = sizeof(font5) / sizeof(byte);
100-
writeUint16BE(outFile, nbrElem);
101-
102-
for (int j = 0; j < nbrElem; j++)
103-
writeByte(outFile, font5[j]);
104-
105-
// font6
106-
nbrElem = sizeof(font6) / sizeof(byte);
107-
writeUint16BE(outFile, nbrElem);
108-
109-
for (int j = 0; j < nbrElem; j++)
110-
writeByte(outFile, font6[j]);
111-
112-
// font8
113-
nbrElem = sizeof(font8) / sizeof(byte);
114-
writeUint16BE(outFile, nbrElem);
115-
116-
for (int j = 0; j < nbrElem; j++)
117-
writeByte(outFile, font8[j]);
118-
11995
// Write textData
12096
// textData_1w
12197
nbrElem = sizeof(textData_1w) / sizeof(char *);

devtools/create_hugo/create_hugo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define DATAALIGNMENT 4
2828

2929
#define HUGO_DAT_VER_MAJ 0 // 1 byte
30-
#define HUGO_DAT_VER_MIN 42 // 1 byte
30+
#define HUGO_DAT_VER_MIN 43 // 1 byte
3131

3232
typedef unsigned char uint8;
3333
typedef unsigned char byte;

devtools/create_hugo/staticfont.h

Lines changed: 0 additions & 183 deletions
This file was deleted.

0 commit comments

Comments
 (0)
X Tutup