aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/dwidth.cpp
diff options
context:
space:
mode:
authoruruk2013-06-17 10:38:38 +0200
committeruruk2013-06-17 10:38:38 +0200
commita2adda516bdf790651283201a666f253a8bfcc49 (patch)
treebdc6479a6889d15d1b25e47e28f0c86f093a9610 /engines/avalanche/dwidth.cpp
parent2f0e43bb2e402bbcf65175934d21ade6febaad60 (diff)
downloadscummvm-rg350-a2adda516bdf790651283201a666f253a8bfcc49.tar.gz
scummvm-rg350-a2adda516bdf790651283201a666f253a8bfcc49.tar.bz2
scummvm-rg350-a2adda516bdf790651283201a666f253a8bfcc49.zip
AVALANCHE: Initial PtoC output.
Diffstat (limited to 'engines/avalanche/dwidth.cpp')
-rw-r--r--engines/avalanche/dwidth.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/avalanche/dwidth.cpp b/engines/avalanche/dwidth.cpp
new file mode 100644
index 0000000000..f66a417610
--- /dev/null
+++ b/engines/avalanche/dwidth.cpp
@@ -0,0 +1,20 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+
+
+typedef matrix<'\0','\377',0,15,byte> fonttype;
+
+integer gd,gm;
+fonttype f;
+file<fonttype> ff;
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ assign(ff,"v:avalot.fnt"); reset(ff); ff >> f; close(ff);
+ gd=3; gm=0; initgraph(gd,gm,"");
+ for( gd=0; gd <= 15; gd ++) mem[0xa000*gd*80]=f['A'][gd];
+return EXIT_SUCCESS;
+}