X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.h;h=fe96a78fde3dc98afda722dba483c540469b6ef0;hb=5c022e8e83924eba7882be2ab3824f63d6ce0c3c;hp=86d4ebf5df8fcab761d019d5eaedf35e8c33d1c3;hpb=979f6e13ea545f665c030018a5690e3c563793c3;p=16.git diff --git a/src/lib/modex16.h b/src/lib/modex16.h index 86d4ebf5..fe96a78f 100755 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -31,11 +31,16 @@ #include "src/lib/modex16/16planar.h" #include "src/lib/16text.h" #include "src/lib/modex16/16render.h" -#include "src/lib/modex16/320x240.h" -#include "src/lib/modex16/320x200.h" -#include "src/lib/modex16/256x192.h" -#include "src/lib/modex16/192x144_.h" -#include "src/lib/modex16/160x120.h" +// #include "src/lib/modex16/320x240.h" +// #include "src/lib/modex16/320x200.h" +// #include "src/lib/modex16/256x192.h" +// #include "src/lib/modex16/192x144_.h" +// #include "src/lib/modex16/160x120.h" + +#include +#include +#include +#include static struct pcxHeader { byte id; @@ -79,11 +84,11 @@ typedef union /* -============================ Functions =============================- */ /* mode switching, page, and plane functions */ -void VGAmodeX(sword vq, global_game_variables_t *gv); -void modexEnter(sword vq, global_game_variables_t *gv); -long vgaGetMode(); +void VGAmodeX(sword vq, boolean cmem, global_game_variables_t *gv); +void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv); +byte vgaGetMode(); void modexLeave(); -void modexsetBaseXMode(page_t *page); +void modexsetBaseXMode(); page_t modexDefaultPage(page_t *p); page_t modexNextPage(page_t *p); page_t modexNextPageFlexibleSize(page_t *p, word x, word y); @@ -115,15 +120,16 @@ void modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqoffset); void modexPalUpdate1(byte *p); void modexPalUpdate0(byte *p); void modexPalOverscan(byte *p, word col); -void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/); +void modexchkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/); void modexputPixel(page_t *page, int x, int y, byte color); byte modexgetPixel(page_t *page, int x, int y); void modexhlin(page_t *page, word xl, word xh, word y, word color); void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str, boolean q); void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); -void pdump(page_t *pee); -void cls(page_t *page, byte color, byte *Where); -void modexWaitBorder(); +void modexpdump(page_t *pee); +void modexcls(page_t *page, byte color, byte *Where); +//void modexWaitBorder(); +void bios_cls(); /* -======================= Constants & Vars ==========================- */ extern byte far* VGA; /* The VGA Memory */