X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2F32x%2Fdraw.c;h=3445121e3afaf79701087be238407c291050ab02;hb=1b3f58449285f3cfcc8ae0e1aefdada44a9e9bc5;hp=7e0911e953fb06161a021fc4c64b3b1414f057ce;hpb=be20816c4c487c4b114aa444b1a5819d5785b118;p=picodrive.git diff --git a/pico/32x/draw.c b/pico/32x/draw.c index 7e0911e..3445121 100644 --- a/pico/32x/draw.c +++ b/pico/32x/draw.c @@ -79,7 +79,13 @@ void FinalizeLine32xRGB555(int sh, int line) } } else { // Run Length Mode - + unsigned short len, t; + for (i = 320; i > 0; ps++) { + t = pal[*ps & 0xff]; + for (len = (*ps >> 8) + 1; len > 0 && i > 0; len--, i--, pd++, pb++) + if (*pb == 0 || (t & 0x20)) + *pd = t; + } } }