X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.h;h=81f24beaf5ec59d2c9b33896b41781952a62d5a1;hb=406b5fda9569ccdcf5fad9944f442b24ec0662fa;hp=b5ca74b1714c3c546e27dafbb2f145e323ee2900;hpb=f084f970ed1e8f06dfffd67bd924918a18a9ce50;p=16.git diff --git a/src/lib/modex16.h b/src/lib/modex16.h index b5ca74b1..81f24bea 100755 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -24,9 +24,7 @@ */ #ifndef MODEX16_H #define MODEX16_H -//#include -#include "src/lib/types.h" #include "src/lib/16_head.h" #include "src/lib/bitmap.h" #include "src/lib/planar.h" @@ -39,6 +37,26 @@ #include "src/lib/modex16/192x144_.h" #include "src/lib/modex16/160x120.h" +static struct pcxHeader { + byte id; + byte version; + byte encoding; + byte bpp; + word xmin; + word ymin; + word xmax; + word ymax; + word hres; + word vres; + byte pal16[48]; + byte res1; + word bpplane; + word palType; + word hScreenSize; + word vScreenSize; + byte padding[54]; +} head; + //320x240 = 20x15 //192x144 = 12x9 @@ -115,9 +133,6 @@ extern byte far* VGA; /* The VGA Memory */ #define SET_MODE 0x00 #define VGA_256_COLOR_MODE 0x13 #define TEXT_MODE 0x03 -//#define SCREEN_WIDTH 320 -//#define SCREEN_HEIGHT 240 -//#define PAGE_SIZE (word)(SCREEN_WIDTH/4 * SCREEN_HEIGHT) #define AC_INDEX 0x03c0 #define SC_INDEX 0x03c4