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

List:       kde-commits
Subject:    koffice/krita/core
From:       Bart Coppens <kde () bartcoppens ! be>
Date:       2005-05-07 21:03:54
Message-ID: 1115499834.166831.8725.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 410406 by coppens:

Subtracting of selections works now

 M  +4 -2      trunk/koffice/krita/core/kis_paint_device.cc  


--- trunk/koffice/krita/core/kis_paint_device.cc #410405:410406
@@ -727,9 +727,11 @@
 		return;
 
 	Q_INT32 x, y, w, h;
+	KisPainter painter(m_selection.data());
+	selection -> invert();
 	selection -> extent(x, y, w, h);
-	KisPainter painter(m_selection.data());
-	painter.bitBlt(x, y, COMPOSITE_ERASE, selection.data(), x, y, x, y);
+	painter.bitBlt(x, y, COMPOSITE_ERASE, selection.data(), x, y, w, h);
+	selection -> invert();
 	painter.end();
 
 	if(m_owner)
[prev in list] [next in list] [prev in thread] [next in thread] 

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