X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.h;h=755a11c8a693055a9fc1fbba89735ec2c99e1d2f;hb=bb4878674a36456e85b10dc2607444caba597528;hp=6cef33cd1f19567e8041ff4c57c4c483125f2f1b;hpb=545e0ff364efedefb4c9c850ba6ce0fcddcfb101;p=16.git diff --git a/src/lib/modex16.h b/src/lib/modex16.h index 6cef33cd..755a11c8 100644 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -3,10 +3,10 @@ */ #ifndef MODEX16_H #define MODEX16_H -#include -#include "src\lib\types.h" -#include "src\lib\bitmap.h" -#include "src\lib\planar.h" +//#include +#include "src/lib/types.h" +#include "src/lib/bitmap.h" +#include "src/lib/planar.h" /* -========================== Types & Macros ==========================- */ #define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2)) @@ -21,6 +21,13 @@ typedef struct { word height; /* virtual height of the page */ } page_t; +typedef union +{ + byte red; + byte green; + byte blue; +} rgb_t; + /* -============================ Functions =============================- */ /* mode switching, page, and plane functions */ void modexEnter(); @@ -55,9 +62,10 @@ void modexPalBlack(); void modexPalWhite(); /* utility functions */ -void modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqpp); -void modexPalUpdate2(byte *p); -void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z); +void modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqoffset); +void modexPalUpdate1(byte *p); +void modexPalUpdate0(byte *p); +void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/); void modexWaitBorder(); /* -======================= Constants & Vars ==========================- */