]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_vl.h
__seguse.txt added to show _seg usage also OpenVGMFile needs to be ported to 16_snd...
[16.git] / src / lib / 16_vl.h
index e2c28a3242d926f02d7b8e0b9b95eb85db1c3cf8..b1b03a21f60874ff59d21792f43222017c894c5b 100755 (executable)
@@ -26,7 +26,6 @@
 #define MODEX16_H\r
 \r
 #include "src/lib/16_head.h"\r
-#include "src/lib/bitmap.h"\r
 //#include "src/lib/planar.h"\r
 //#include "src/lib/modex16/16planar.h"\r
 #include "src/lib/16text.h"\r
@@ -58,7 +57,6 @@
 #define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2))\r
 #define PLANE(x) (1 << ((x) & 3))\r
 #define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02)\r
-#define     PALSIZE            768\r
 \r
 typedef union\r
 {\r
@@ -122,10 +120,11 @@ void modexFlashOff(word fade, byte *palette);
 \r
 /* palette loading and saving */\r
 void modexPalSave(byte *palette);\r
-byte *modexNewPal();\r
-void modexLoadPalFile(char *filename, byte **palette);\r
+//byte *modexNewPal();\r
+void modexLoadPalFile(char *filename, byte *palette);\r
 void VL_LoadPalFile(const char *filename, byte *palette);\r
 void VL_LoadPalFilewithoffset(const char *filename, byte *palette, word o);\r
+void VL_UpdatePaletteWrite(byte *palette, word o);\r
 void modexSavePalFile(char *filename, byte *palette);\r
 \r
 /* fixed palette functions */\r
@@ -166,7 +165,7 @@ static inline byte modexreadPixel(page_t *page, int x, int y, word addr)
 #endif\r
 \r
 void modexDrawChar(page_t *page, int x/*for planar selection only*/, word t, word col, word bgcol, word addr);\r
-void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str);\r
+void modexprint(page_t *page, sword x, sword y, word t, boolean tlsw, word col, word bgcol, const byte *str);\r
 void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str);\r
 void modexpdump(page_t *pee);\r
 void modexcls(page_t *page, byte color, byte *Where);\r