[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kolourpaint/pixmapfx (silent)
From:       Clarence Dang <dang () kde ! org>
Date:       2007-10-08 2:07:40
Message-ID: 1191809260.238016.12455.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 722742 by dang:

SVN_SILENT +debug


 M  +13 -1     kpPixmapFX_Transforms.cpp  


--- trunk/KDE/kdegraphics/kolourpaint/pixmapfx/kpPixmapFX_Transforms.cpp #722741:722742
@@ -346,7 +346,10 @@
 
 // This "sets" pixels instead of "painting" them.
 static void TransformPixmapHelper (QPainter *p, bool drawingOnRGBLayer, void *data)
-{
+{ 
+#if DEBUG_KP_PIXMAP_FX
+    kDebug () << "CALL(drawOnRGBLayer=" << drawingOnRGBLayer << ")";
+#endif
     TransformPixmapPack *pack = static_cast <TransformPixmapPack *> (data);
 
     p->save ();
@@ -382,6 +385,9 @@
     }
 
     p->restore ();
+#if DEBUG_KP_PIXMAP_FX
+    kDebug () << "DONE";
+#endif
 }
 
 // Like QPixmap::transformed() but fills new areas with <backgroundColor>
@@ -570,6 +576,9 @@
     pack.srcPixmap = &pm;
     pack.transformMatrix = transformMatrix;
 
+#if DEBUG_KP_PIXMAP_FX && 1
+    kDebug () << "drawing";
+#endif
     kpPixmapFX::draw (&newPixmap, &::TransformPixmapHelper,
         true/*always "draw"/copy RGB layer*/,
         kpPixmapFX::hasMask (pm)/*draw on mask*/,
@@ -580,6 +589,9 @@
     // the corners.  Fill these corners with the background color.
     if (backgroundColor.isValid ())
     {
+    #if DEBUG_KP_PIXMAP_FX && 1
+        kDebug () << "filling with background color";
+    #endif
         // OPT: The below is hideously slow.
 
         QBitmap opaqueMask (pm.width (), pm.height ());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic