]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_vl.h
i did a butt load of tweaking to the paltest code and i did verious fixes here and...
[16.git] / src / lib / 16_vl.h
index a3769a28216aee6c9803865982e88e30064433cf..6ac00f2865da989cdee8b5d4a2b856399193c63d 100755 (executable)
@@ -68,6 +68,8 @@ typedef union
 \r
 /* -======================= Constants & Vars ==========================- */\r
 extern byte far*  VGA;  /* The VGA Memory */\r
+extern byte far gamepal;\r
+extern byte far corepal;       //core palette used universally\r
 #define SCREEN_SEG             0xa000\r
 #define VIDEO_INT              0x10\r
 #define SET_MODE               0x00\r
@@ -200,12 +202,14 @@ void modexFlashOn(word fade, byte *palette);
 void modexFlashOff(word fade, byte *palette);\r
 \r
 /* palette loading and saving */\r
+void VL_SetPalette (byte far *palette, video_t *v);\r
 void modexPalSave(byte *palette);\r
 //byte *modexNewPal();\r
 void modexLoadPalFile(char *filename, byte *palette);\r
 void VL_LoadPalFile(const char *filename, byte *palette, global_game_variables_t *gvar);\r
 void VL_LoadPalFileCore(byte *palette, global_game_variables_t *gvar);\r
-//void VLL_LoadPalFilewithoffset(const char *filename, byte *palette, word o, global_game_variables_t *gvar);\r
+void VL_SetCorePal(global_game_variables_t *gvar);\r
+void VLL_LoadPalFilewithoffset(const char *filename, byte *palette, word o, word palsize, global_game_variables_t *gvar);\r
 void VL_UpdatePaletteWrite(byte *palette, word o, word palsize, global_game_variables_t *gvar);\r
 void VL_PaletteSync(global_game_variables_t *gvar);\r
 void modexSavePalFile(char *filename, byte *palette);\r