X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fvideoport.c;h=61f7f18ee55906dd8616331176e74c205993f37f;hb=59da664524da9eeaf8a6b04b2f8710b5b35d9035;hp=6c876aeaad02f3a4102332e576fc47af6d926d44;hpb=a93a80deda2211dc89ea543841e71cdaf6f65917;p=picodrive.git diff --git a/pico/videoport.c b/pico/videoport.c index 6c876ae..61f7f18 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -22,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]); } @@ -156,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