]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/modex16.h
let's show Sparky4 what I mean by vertical column font rendering.
[16.git] / src / lib / modex16.h
index c1c45252a336de6ef0d286a25f07963c2e78e151..f85eb055a2de9b60b47e8d9a0c7faecc4248a4ce 100755 (executable)
@@ -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);