X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fmodex16%2Fmodex16.h;h=ff4913f6bdfdad3daffaa58fe2d3ace8f4cf5a84;hb=7499dc78fbb151b6daac45f2643a15bf1b40beb7;hp=f45356b512ef049418cd23308e3fed0fe3012ad6;hpb=dfaa5ddeb4ea4e1edaf1dbaa6c2a3773ea8a918d;p=16.git diff --git a/16/modex16/modex16.h b/16/modex16/modex16.h old mode 100644 new mode 100755 index f45356b5..ff4913f6 --- a/16/modex16/modex16.h +++ b/16/modex16/modex16.h @@ -12,6 +12,8 @@ #define PLANE(x) (1<< (x&3)) #define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02) +#ifndef PAGET +#define PAGET typedef struct { byte far* data; /* the data for the page */ word dx; /* col we are viewing on the virtual screen */ @@ -19,6 +21,7 @@ typedef struct { word width; /* virtual width of the page */ word height; /* virtual height of the page */ } page_t; +#endif /* -============================ Functions =============================- */ /* mode switching, page, and plane functions */ @@ -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); 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); @@ -55,9 +59,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