splash/Splash.cc |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit bedf48d4397ae412a6d28fc8fea16cc23a29f07c
Author: Albert Astals Cid <[email protected]>
Date:   Tue Aug 17 22:02:59 2010 +0100

    use memset instead of a for

diff --git a/splash/Splash.cc b/splash/Splash.cc
index 4f2419f..5e27d42 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -3265,9 +3265,7 @@ SplashError Splash::blitTransparent(SplashBitmap *src, 
int xSrc, int ySrc,
   if (bitmap->alpha) {
     for (y = 0; y < h; ++y) {
       q = &bitmap->alpha[(yDest + y) * bitmap->width + xDest];
-      for (x = 0; x < w; ++x) {
-       *q++ = 0x00;
-      }
+      memset(q, 0x00, w);
     }
   }
 
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to