X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FDraw.c;h=49019386d8472885398fbcc933dc6acec4664769;hb=1b13dae0c45a068382ce2422b1d407ff47374039;hp=989d9bdb27b8d5f27715fd9d021c727a324b6e17;hpb=81fda4e8d854c96e70dc2e6b7cd2f48a51f55d86;p=picodrive.git diff --git a/Pico/Draw.c b/Pico/Draw.c index 989d9bd..4901938 100644 --- a/Pico/Draw.c +++ b/Pico/Draw.c @@ -54,6 +54,7 @@ void DrawSpritesFromCache(int *hc, int sh); void DrawLayer(int plane_sh, int *hcache, int cellskip, int maxcells); void FinalizeLineBGR444(int sh); void FinalizeLineRGB555(int sh); +void *blockcpy(void *dst, const void *src, size_t n); void blockcpy_or(void *dst, void *src, size_t n, int pat); #else // utility @@ -63,6 +64,7 @@ void blockcpy_or(void *dst, void *src, size_t n, int pat) for (; n; n--) *pd++ = (unsigned char) (*ps++ | pat); } +#define blockcpy memcpy #endif @@ -610,8 +612,8 @@ static void DrawTilesFromCacheShPrep(void) { // as some layer has covered whole line with hi priority tiles, // we can process whole line and then act as if sh/hi mode was off. - rendstatus|=0x80; int c = 320/4, *zb = (int *)(HighCol+8); + rendstatus|=0x80; while (c--) { int tmp = *zb;