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

List:       kde-commits
Subject:    koffice/krita/core
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2005-07-30 8:32:06
Message-ID: 1122712326.352497.9205.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 440348 by rempt:

Fixed convolution for good now. Now we just have to implement versions for
all colorspaces...


 M  +4 -6      kis_convolution_painter.cc  


--- trunk/koffice/krita/core/kis_convolution_painter.cc #440347:440348
@@ -77,9 +77,9 @@
 	KisKernel * kernel = new KisKernel();
 	kernel -> width = 3;
 	kernel -> height = 3;
-	kernel -> factor = matrix[0].factor();
-	kernel -> offset = matrix[0].offset();
-	kernel->data = new Q_INT32(9);
+	kernel -> factor = matrix->factor();
+	kernel -> offset = matrix->offset();
+	kernel->data = new Q_INT32[9];
 	for (int row = 0; row < 3; ++row) {
 		for (int col = 0; col < 3; ++col) {
 			kernel -> data[row * 3 + col] = matrix[0][col][row];
@@ -122,9 +122,7 @@
 	emit notifyProgress(this, 0);
 
 	KisStrategyColorSpaceSP cs = src->colorStrategy();
-	// The total number of channels in a pixel
-	Q_INT32 depth = cs->nChannels();
-
+	
 	// Determine whether we convolve border pixels, or not.
 	switch (borderOp) {
 		case BORDER_DEFAULT_FILL :
[prev in list] [next in list] [prev in thread] [next in thread] 

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