]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_vl.h
[16_ca needs huge amounts of work and I should remember what needs to be done soon...
[16.git] / src / lib / 16_vl.h
index e2c28a3242d926f02d7b8e0b9b95eb85db1c3cf8..cec79507ad5189ec035ab3b06fe07a36ea6aabf7 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
@@ -86,6 +84,9 @@ extern byte far*  VGA;  /* The VGA Memory */
 #define LOW_ADDRESS            0x0D\r
 #define VRETRACE               0x08\r
 //#define INPUT_STATUS_1               0x03da  defined in 16_head\r
+#define STATUS_REGISTER_1      INPUT_STATUS_1\r
+#define ATR_INDEX                      AC_INDEX\r
+#define ATR_OVERSCAN           17\r
 #define DISPLAY_ENABLE         0x01\r
 #define MAP_MASK               0x02\r
 #define PAL_READ_REG                   0x03C7   /* Color register, read address */\r
@@ -122,10 +123,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 +168,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