#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
#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
\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
void modexPalWhite();\r
\r
/* utility functions */\r
-void modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqoffset);\r
-void modexPalUpdate1(byte *p);\r
+void modexPalUpdate(byte *p);\r
void modexPalUpdate0(byte *p);\r
void modexPalOverscan(word col);\r
-void modexchkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/);\r
void modexputPixel(page_t *page, int x, int y, byte color);\r
byte modexgetPixel(page_t *page, int x, int y);\r
\r
#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
void VL_PatternDraw(video_t *video, word pn, boolean sw, boolean allsw);\r
void modexWaitBorder();\r
void modexWaitBorder_start();\r
+void modexWaitBorder_end();\r
void VL_PrintmodexmemInfo(video_t *v);\r
\r
#endif\r