X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vl.h;h=078a5080b487a8a6d6e115c5106216cf3bb9970e;hb=2f706222157c9d186db8adf361542bb76ba259c6;hp=6437e1b91c3e15bd60ba6f43c861be96c22ba05a;hpb=f2a811af6076e5d139acaef8c0fcf7c40244d8ed;p=16.git diff --git a/src/lib/16_vl.h b/src/lib/16_vl.h index 6437e1b9..078a5080 100755 --- a/src/lib/16_vl.h +++ b/src/lib/16_vl.h @@ -158,6 +158,7 @@ void VGAWRITEMODE(byte x), #define VW_Hlin(x,z,y,c,q) VL_Hlin(x,y,(z)-(x)+1,c,q) #define VW_Vlin(y,z,x,c,q) VL_Vlin(x,y,(z)-(y)+1,c,q) +#define PALPROGRAMSNEWPAGE gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0], &gvar);// modexFadeOn(4, &gvar.video.palette); /* -============================ Functions =============================- */ /* mode switching, page, and plane functions */ @@ -173,13 +174,13 @@ byte VL_vgaGetMode(void); extern void TL_VidInit(global_game_variables_t *gvar); void modexLeave(void); void modexsetBaseXMode(); -page_t modexDefaultPage(page_t *p/*, video_t *v*/); +page_t modexDefaultPage(page_t *p, global_game_variables_t *gvar); page_t modexNextPage(page_t *p); page_t modexNextPageFlexibleSize(page_t *p, word x, word y); void modexCalcVmemRemain(video_t *video); void VL_Initofs(video_t *video); -void modexHiganbanaPageSetup(video_t *video); -//void modexShowPage(page_t *page); +void modexHiganbanaPageSetup(global_game_variables_t *gvar); +void modexShowPage(page_t *page);//for 0croll.exe void VL_ShowPage(page_t *page, boolean vsync, boolean sr); void modexPanPage(page_t *page, int dx, int dy); void modexSelectPlane(byte plane); @@ -200,7 +201,7 @@ void modexPalSave(byte *palette); void modexLoadPalFile(char *filename, byte *palette); void VL_LoadPalFile(const char *filename, byte *palette, global_game_variables_t *gvar); void VL_LoadPalFileCore(byte *palette, global_game_variables_t *gvar); -void VL_LoadPalFilewithoffset(const char *filename, byte *palette, word o, global_game_variables_t *gvar); +//void VLL_LoadPalFilewithoffset(const char *filename, byte *palette, word o, global_game_variables_t *gvar); void VL_UpdatePaletteWrite(byte *palette, word o, global_game_variables_t *gvar); void VL_PaletteSync(global_game_variables_t *gvar); void modexSavePalFile(char *filename, byte *palette); @@ -213,7 +214,7 @@ void modexPalWhite(); /* utility functions */ void modexPalUpdate(byte *p); void VL_modexPalScramble(byte *p); -word modexPalOverscan(word col); +word VL_modexPalOverscan(byte *p, word col); void VL_ColorBorder (int color, video_t *v); void VL_Plot (int x, int y, int color, global_game_variables_t *gvar); void VL_Hlin (unsigned x, unsigned y, unsigned width, unsigned color, global_game_variables_t *gvar); @@ -250,10 +251,10 @@ 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, sword x, sword y, word t, boolean tlsw, word col, word bgcol, boolean sw, const byte *str); +void modexprint(page_t *page, sword x, sword y, word t, boolean tlsw, word color, word bgcolor, boolean vidsw, const byte *str); void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); void VL_modexPrintTextBox(global_game_variables_t *gvar); -void modexpdump(page_t *pee); +void modexpdump(nibble pagenum, global_game_variables_t *gvar); void VL_PatternDraw(video_t *video, word pn, boolean sw, boolean allsw); void modexWaitBorder(); void modexWaitBorder_start();