From: Stefan Csomor Date: Mon, 3 Mar 2003 15:35:52 +0000 (+0000) Subject: sorry previous commit message was wrong, should read X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c8ce2837368d52d250eba9a4a5fd665c094a0d38?ds=sidebyside sorry previous commit message was wrong, should read added shrink procedure with proper color averaging, it is triggered from scale in case the old with/height are multiples of the new width/height git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/image.cpp b/src/common/image.cpp index 5e6a3df8c2..17d1b9643b 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -258,7 +258,6 @@ wxImage wxImage::ShrinkBy( int xFactor , int yFactor ) const for (long y = 0; y < height; y++) { - for (long x = 0; x < width; x++) { unsigned long avgRed = 0 ;