X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fmodex16%2Fmodex16.h;h=5ce666dfa8c40173db0174464fccbd9110d7a1be;hb=ee23271b54767e3d62abc7a25bd3917074575b8b;hp=08e7b3606c123555757328154b5c841dcbd16eae;hpb=067c2ee7341922ae714b4ce18e520aab7c7b5b5f;p=16.git diff --git a/16/modex16/modex16.h b/16/modex16/modex16.h old mode 100644 new mode 100755 index 08e7b360..5ce666df --- a/16/modex16/modex16.h +++ b/16/modex16/modex16.h @@ -5,17 +5,12 @@ #define MODEX16_H #include #include "types.h" +#include "bitmap.h" /* -========================== Types & Macros ==========================- */ #define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2)) #define PLANE(x) (1<< (x&3)) #define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02) -typedef struct { - byte *data; - word width; - word height; - byte *palette; -} bitmap_t; typedef struct { byte far* data; /* the data for the page */ @@ -39,6 +34,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); void modexDrawSprite(page_t *page, int x, int y, bitmap_t *bmp); void modexDrawSpriteRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, bitmap_t *bmp); +void modexCopyPageRegion(page_t *dest, page_t *src, word sx, word sy, word dx, word dy, word width, word height); /* Palette fade and flash effects */ void modexFadeOn(word fade, byte *palette); @@ -60,9 +56,6 @@ void modexPalWhite(); void modexPalUpdate(byte *p); void modexWaitBorder(); -/* bitmap functions */ -bitmap_t modexLoadPcx(char *filename); - /* -======================= Constants & Vars ==========================- */ extern byte far* VGA; /* The VGA Memory */ #define SCREEN_SEG 0xa000