get rid of port_config.h
[picodrive.git] / pico / draw2.c
index 58139d9..5730d7b 100644 (file)
@@ -8,15 +8,11 @@
 \r
 #include "pico_int.h"\r
 \r
-// port_config.h include must define these 2 defines:\r
-// #define START_ROW  1 // which row of tiles to start rendering at?\r
-// #define END_ROW   27 // ..end\r
-// one row means 8 pixels. If above example was used, (27-1)*8=208 lines would be rendered.\r
+#define START_ROW  0 // which row of tiles to start rendering at?\r
+#define END_ROW   28 // ..end\r
 \r
 #define TILE_ROWS END_ROW-START_ROW\r
 \r
-#define USE_CACHE\r
-\r
 // note: this is not implemented in ARM asm\r
 #if defined(DRAW2_OVERRIDE_LINE_WIDTH)\r
 #define LINE_WIDTH DRAW2_OVERRIDE_LINE_WIDTH\r
@@ -24,6 +20,9 @@
 #define LINE_WIDTH 328\r
 #endif\r
 \r
+static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)];\r
+unsigned char *PicoDraw2FB = PicoDraw2FB_;\r
+\r
 static int HighCache2A[41*(TILE_ROWS+1)+1+1]; // caches for high layers\r
 static int HighCache2B[41*(TILE_ROWS+1)+1+1];\r
 \r