X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fvideoport.c;h=61f7f18ee55906dd8616331176e74c205993f37f;hb=65678f6d7712ea60dc2dfeef64356f4f17699fbd;hp=1e60686847095cdec9f78306e13345d9c0cfe220;hpb=53f948c9014404685aaacce497755794c25bc5b6;p=picodrive.git diff --git a/pico/videoport.c b/pico/videoport.c index 1e60686..61f7f18 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -8,7 +8,6 @@ */ #include "pico_int.h" -#include "cd/gfx_cd.h" int line_base_cycles; extern const unsigned char hcounts_32[]; @@ -23,7 +22,7 @@ typedef unsigned int u32; int (*PicoDmaHook)(unsigned int source, int len, unsigned short **srcp, unsigned short **limitp) = NULL; -static __inline void AutoIncrement(void) +static INLINE void AutoIncrement(void) { Pico.video.addr=(unsigned short)(Pico.video.addr+Pico.video.reg[0xf]); } @@ -157,7 +156,7 @@ static void DmaSlow(int len) if (inc == 2 && !(a&1) && a+len*2 < 0x10000) { // most used DMA mode - memcpy16(r + (a>>1), pd, len); + pmemcpy16(r + (a>>1), pd, len); a += len*2; } else