X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vl.h;h=b1b03a21f60874ff59d21792f43222017c894c5b;hb=c060c91a1c7e418122606fdc5cd7c9ce5a55495d;hp=f375d1ff944d6a8c281580729a3f6165bcda9219;hpb=02ebe5d276d33d55b9d46fef19a8ef939b7c9743;p=16.git diff --git a/src/lib/16_vl.h b/src/lib/16_vl.h index f375d1ff..b1b03a21 100755 --- a/src/lib/16_vl.h +++ b/src/lib/16_vl.h @@ -26,7 +26,6 @@ #define MODEX16_H #include "src/lib/16_head.h" -#include "src/lib/bitmap.h" //#include "src/lib/planar.h" //#include "src/lib/modex16/16planar.h" #include "src/lib/16text.h" @@ -58,7 +57,6 @@ #define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2)) #define PLANE(x) (1 << ((x) & 3)) #define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02) -#define PALSIZE 768 typedef union { @@ -122,9 +120,11 @@ void modexFlashOff(word fade, byte *palette); /* palette loading and saving */ void modexPalSave(byte *palette); -byte *modexNewPal(); -void modexLoadPalFile(char *filename, byte **palette); +//byte *modexNewPal(); +void modexLoadPalFile(char *filename, byte *palette); void VL_LoadPalFile(const char *filename, byte *palette); +void VL_LoadPalFilewithoffset(const char *filename, byte *palette, word o); +void VL_UpdatePaletteWrite(byte *palette, word o); void modexSavePalFile(char *filename, byte *palette); /* fixed palette functions */ @@ -135,7 +135,6 @@ void modexPalWhite(); void modexPalUpdate(byte *p); void modexPalUpdate0(byte *p); void modexPalOverscan(word col); -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); @@ -166,7 +165,7 @@ static inline byte modexreadPixel(page_t *page, int x, int y, word addr) #endif void modexDrawChar(page_t *page, int x/*for planar selection only*/, word t, word col, word bgcol, word addr); -void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); +void modexprint(page_t *page, sword x, sword y, word t, boolean tlsw, word col, word bgcol, const byte *str); void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); void modexpdump(page_t *pee); void modexcls(page_t *page, byte color, byte *Where);