[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: Re: Krita and scaling
From: Michael Thaler <michael.thaler () ph ! tum ! de>
Date: 2004-09-19 12:07:04
Message-ID: 200409191407.04868.michael.thaler () physik ! tu-muenchen ! de
[Download RAW message or body]
Hi,
> Okay, done. Really beautiful results. Checked in, even though there's one
> little problem: with landscape images, I tend to get 'siamese' twin
> results: http://www.valdyas.org/~boud/siamese.png. No doubt that'll get
> ironed out.
This is a feature:-) But as you requested, I fixed it, just apply the attached
patch.
Michael
["mydiff" (text/x-diff)]
? mydiff
? core/compositeop/Makefile
? core/compositeop/Makefile.in
? plugins/colorspace_cmyk/Makefile
? plugins/colorspace_cmyk/Makefile.in
Index: core/kis_paint_device.cc
===================================================================
RCS file: /home/kde/koffice/krita/core/kis_paint_device.cc,v
retrieving revision 1.96
diff -u -3 -u -p -r1.96 kis_paint_device.cc
--- core/kis_paint_device.cc 17 Sep 2004 13:38:31 -0000 1.96
+++ core/kis_paint_device.cc 19 Sep 2004 11:55:08 -0000
@@ -421,10 +421,10 @@ void KisPaintDevice::scale(double xscale
weight[0] = (this->*filterf)(weight[0]);
if(xx < 0) {
n = -xx;
- } else if(xx >= height()) {
- n = (height() - xx) + height() - 1;
- } else {
- n = xx;
+ } else if(xx >= height()) {
+ n = (height() - xx) + height() - 1;
+ } else {
+ n = xx;
}
k = contribY[y].n++;
contribY[y].p[k].m_pixel = n;
@@ -436,7 +436,7 @@ void KisPaintDevice::scale(double xscale
for(int x = 0; x < targetW; x++)
{
- calc_x_contrib(&contribX, xscale, fwidth, targetW, height(), filterf, x);
+ calc_x_contrib(&contribX, xscale, fwidth, targetW, width(), filterf, x);
/* Apply horz filter to make dst column in tmp. */
for(int y = 0; y < height(); y++)
{
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic