projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
471c7e9
)
Merge branch 'obi/master' into experimental
author
Andreas Oberritter
<obi@opendreambox.org>
Thu, 13 Jan 2011 00:11:35 +0000
(
01:11
+0100)
committer
Andreas Oberritter
<obi@opendreambox.org>
Thu, 13 Jan 2011 00:11:35 +0000
(
01:11
+0100)
lib/gdi/accel.cpp
patch
|
blob
|
history
diff --git
a/lib/gdi/accel.cpp
b/lib/gdi/accel.cpp
index
5049f0b
..
bd1439f
100644
(file)
--- a/
lib/gdi/accel.cpp
+++ b/
lib/gdi/accel.cpp
@@
-112,7
+112,7
@@
int gAccel::blit(gSurface *dst, const gSurface *src, const eRect &p, const eRect
pal_addr = src->stride * src->y;
unsigned long *pal = (unsigned long*)(((unsigned char*)src->data) + pal_addr);
pal_addr += src->data_phys;
- for (i = 0; i <
256
; ++i)
+ for (i = 0; i <
src->clut.colors
; ++i)
*pal++ = src->clut.data[i].argb() ^ 0xFF000000;
} else
return -1; /* unsupported source format */