]> 4ch.mooo.com Git - 16.git/blobdiff - 16/modex16/modex16.h
got pcxtest.exe to compile and work
[16.git] / 16 / modex16 / modex16.h
old mode 100644 (file)
new mode 100755 (executable)
index f45356b..ff4913f
@@ -12,6 +12,8 @@
 #define PLANE(x) (1<< (x&3))\r
 #define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02)\r
 \r
+#ifndef PAGET\r
+#define PAGET\r
 typedef struct {\r
     byte far* data;    /* the data for the page */\r
     word dx;           /* col we are viewing on the virtual screen */\r
@@ -19,6 +21,7 @@ typedef struct {
     word width;                /* virtual width of the page */\r
     word height;       /* virtual height of the page */\r
 } page_t;\r
+#endif\r
 \r
 /* -============================ Functions =============================- */\r
 /* mode switching, page, and plane functions */\r
@@ -34,6 +37,7 @@ void modexDrawBmp(page_t *page, int x, int y, bitmap_t *bmp);
 void modexDrawBmpRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, bitmap_t *bmp);\r
 void modexDrawSprite(page_t *page, int x, int y, bitmap_t *bmp);\r
 void modexDrawSpriteRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, bitmap_t *bmp);\r
+void modexCopyPageRegion(page_t *dest, page_t *src, word sx, word sy, word dx, word dy, word width, word height);\r
 \r
 /* Palette fade and flash effects */\r
 void modexFadeOn(word fade, byte *palette);\r
@@ -55,9 +59,6 @@ void modexPalWhite();
 void modexPalUpdate(byte *p);\r
 void modexWaitBorder();\r
 \r
-/* bitmap functions */\r
-bitmap_t modexLoadPcx(char *filename);\r
-\r
 /* -======================= Constants & Vars ==========================- */\r
 extern byte far*  VGA;  /* The VGA Memory */\r
 #define SCREEN_SEG             0xa000\r