summaryrefslogtreecommitdiffstats
path: root/libpixelflinger
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-20 07:38:35 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-20 07:38:35 -0800
commit3e292b9716072cae37bff5b99c1d2660555a265e (patch)
tree47b158abbad9985ee83875e28ab9a8d85a9cf72e /libpixelflinger
parent261ed7551e3234aa437658796afdc4eb372da9d7 (diff)
downloadcore-3e292b9716072cae37bff5b99c1d2660555a265e.tar.gz
core-3e292b9716072cae37bff5b99c1d2660555a265e.tar.bz2
core-3e292b9716072cae37bff5b99c1d2660555a265e.zip
auto import from //branches/cupcake/...@132569
Diffstat (limited to 'libpixelflinger')
-rw-r--r--libpixelflinger/scanline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpixelflinger/scanline.cpp b/libpixelflinger/scanline.cpp
index 75b668d37..f70030680 100644
--- a/libpixelflinger/scanline.cpp
+++ b/libpixelflinger/scanline.cpp
@@ -1256,7 +1256,7 @@ finish:
void scanline_t32cb16(context_t* c)
{
int32_t x = c->iterators.xl;
- size_t ct = c->iterators.xr - x;
+ size_t ct = c->iterators.xr - x;
int32_t y = c->iterators.y;
surface_t* cb = &(c->state.buffers.color);
union {
@@ -1282,7 +1282,7 @@ last_one:
ct--;
}
- while (ct > 0) {
+ while (ct >= 2) {
s = GGL_RGBA_TO_HOST( *src++ );
sR = (s >> ( 3))&0x1F;
sG = (s >> ( 8+2))&0x3F;