notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
32x: RLE mode + tweaks, VR runs but unstable as everything else
[picodrive.git]
/
pico
/
32x
/
draw.c
diff --git
a/pico/32x/draw.c
b/pico/32x/draw.c
index
7e0911e
..
3445121
100644
(file)
--- 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;
+ }
}
}