X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fvideoport.c;h=b78c35859b4d30b2c44dd701464b6da5276dbc6a;hb=f3d1e1e63ff0d7fb61ce7b0fa5c328b039f110e0;hp=6d62029c112fad288d067a2de1a58435467f4376;hpb=ef090115c8ea74938ed44e36a42e4a53d4447a9e;p=picodrive.git diff --git a/pico/videoport.c b/pico/videoport.c index 6d62029..b78c358 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -1,11 +1,11 @@ -// PicoDrive - -// (c) Copyright 2004 Dave, All rights reserved. -// (c) Copyright 2006-2008, Grazvydas "notaz" Ignotas -// Free for non-commercial use. - -// For commercial use, separate licencing terms must be obtained. - +/* + * PicoDrive + * (c) Copyright Dave, 2004 + * (C) notaz, 2006-2009 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include "pico_int.h" #include "cd/gfx_cd.h" @@ -208,7 +208,8 @@ static void DmaSlow(int len) break; default: - elprintf(EL_VDPDMA|EL_ANOMALY, "DMA with bad type %i", Pico.video.type); + if (Pico.video.type != 0 || (EL_LOGMASK & EL_VDPDMA)) + elprintf(EL_VDPDMA|EL_ANOMALY, "DMA with bad type %i", Pico.video.type); break; } // remember addr @@ -316,7 +317,7 @@ static void CommandChange(void) if (cmd&0x80) CommandDma(); } -static __inline void DrawSync(int blank_on) +static void DrawSync(int blank_on) { if (Pico.m.scanline < 224 && !(PicoOpt & POPT_ALT_RENDERER) && !PicoSkipFrame && DrawScanline <= Pico.m.scanline) { @@ -545,3 +546,5 @@ unsigned int PicoVideoRead8(unsigned int a) return 0; } + +// vim:shiftwidth=2:ts=2:expandtab