32x: fix FM handling
[picodrive.git] / pico / draw2.c
index 575f6f7..ae69b52 100644 (file)
@@ -1,13 +1,10 @@
-// This is part of Pico Library\r
-\r
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas\r
-// Free for non-commercial use.\r
-\r
-// For commercial use, separate licencing terms must be obtained.\r
-\r
-\r
-// this is a frame-based renderer, alternative to Dave's line based which is in Draw.c\r
-\r
+/*\r
+ * tile renderer\r
+ * (C) notaz, 2006-2008\r
+ *\r
+ * This work is licensed under the terms of MAME license.\r
+ * See COPYING file in the top-level directory.\r
+ */\r
 \r
 #include "pico_int.h"\r
 \r
@@ -18,8 +15,6 @@
 \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
@@ -27,6 +22,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