X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.h;h=f85eb055a2de9b60b47e8d9a0c7faecc4248a4ce;hb=c1d3221afb5fe541d8c886ff66198329c153e48e;hp=c1c45252a336de6ef0d286a25f07963c2e78e151;hpb=a069bf5e709b71a7f4132bc2f20de6ae4b044947;p=16.git diff --git a/src/lib/modex16.h b/src/lib/modex16.h index c1c45252..f85eb055 100755 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -71,7 +71,7 @@ static struct pcxHeader { /* -========================== Types & Macros ==========================- */ #define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2)) -#define PLANE(x) (1<< (x&3)) +#define PLANE(x) (1 << ((x) & 3)) #define SELECT_ALL_PLANES() outpw(0x03c4, 0xff02) #define PALSIZE 768 @@ -149,6 +149,8 @@ void modexPalOverscan(byte *p, word col); void modexchkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/); void modexputPixel(page_t *page, int x, int y, byte color); byte modexgetPixel(page_t *page, int x, int y); + +#if 0 // not needed anymore. maybe good for reference purposes though. static inline void modexwritepixel(page_t *page, int x, int y, word addr, byte color) { /* Each address accesses four neighboring pixels, so set @@ -172,6 +174,8 @@ static inline byte modexreadPixel(page_t *page, int x, int y, word addr) outpw(GC_INDEX+1, x & 3); return vga_state.vga_graphics_ram[addr]; } +#endif + void modexprint(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str); void modexpdump(page_t *pee);