notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unai: Preserve MSB in light routines
[pcsx_rearmed.git]
/
frontend
/
cspace.c
diff --git
a/frontend/cspace.c
b/frontend/cspace.c
index
785b3d1
..
a3e3301
100644
(file)
--- a/
frontend/cspace.c
+++ b/
frontend/cspace.c
@@
-215,7
+215,7
@@
void bgr555_to_uyvy(void *d, const void *s, int pixels)
int r0, g0, b0, r1, g1, b1;
int y0, y1, u, v;
int r0, g0, b0, r1, g1, b1;
int y0, y1, u, v;
- for (; pixels >
0
; src += 2, dst++, pixels -= 2)
+ for (; pixels >
1
; src += 2, dst++, pixels -= 2)
{
b0 = (src[0] >> 10) & 0x1f;
g0 = (src[0] >> 5) & 0x1f;
{
b0 = (src[0] >> 10) & 0x1f;
g0 = (src[0] >> 5) & 0x1f;