X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=pico%2Fdraw2.c;h=ae69b52d441040c39f77e9e2d751eeb6f94122c9;hb=41946d7023cded9999495eb8916eeb5ab0480a1f;hp=575f6f7d40d31dc3803c61d051203ebbd496b0f3;hpb=25eb407c56c95255fc1b88afe084bd5ae393193d;p=picodrive.git diff --git a/pico/draw2.c b/pico/draw2.c index 575f6f7..ae69b52 100644 --- a/pico/draw2.c +++ b/pico/draw2.c @@ -1,13 +1,10 @@ -// This is part of Pico Library - -// (c) Copyright 2007, Grazvydas "notaz" Ignotas -// Free for non-commercial use. - -// For commercial use, separate licencing terms must be obtained. - - -// this is a frame-based renderer, alternative to Dave's line based which is in Draw.c - +/* + * tile renderer + * (C) notaz, 2006-2008 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include "pico_int.h" @@ -18,8 +15,6 @@ #define TILE_ROWS END_ROW-START_ROW -#define USE_CACHE - // note: this is not implemented in ARM asm #if defined(DRAW2_OVERRIDE_LINE_WIDTH) #define LINE_WIDTH DRAW2_OVERRIDE_LINE_WIDTH @@ -27,6 +22,9 @@ #define LINE_WIDTH 328 #endif +static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)]; +unsigned char *PicoDraw2FB = PicoDraw2FB_; + static int HighCache2A[41*(TILE_ROWS+1)+1+1]; // caches for high layers static int HighCache2B[41*(TILE_ROWS+1)+1+1];