[aseprite] 52/308: Minor change in get_neighboring_pixels()

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:44:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 6ab858b72270f2c8fbac283f898487206157214c
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Dec 4 17:46:50 2015 -0300

    Minor change in get_neighboring_pixels()
---
 src/filters/neighboring_pixels.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/filters/neighboring_pixels.h b/src/filters/neighboring_pixels.h
index b6f603d..048c4c1 100644
--- a/src/filters/neighboring_pixels.h
+++ b/src/filters/neighboring_pixels.h
@@ -28,8 +28,6 @@ namespace filters {
                                      TiledMode tiledMode,
                                      Delegate& delegate)
   {
-    int dx, dy;
-
     // Y position to get pixel.
     int getx, gety = y - centerY;
     int addx, addy = 0;
@@ -48,7 +46,7 @@ namespace filters {
         gety = sourceImage->height()-1;
     }
 
-    for (dy=0; dy<height; ++dy) {
+    for (int dy=0; dy<height; ++dy) {
       // X position to get pixel.
       getx = x - centerX;
       addx = 0;
@@ -70,7 +68,7 @@ namespace filters {
       typename Traits::const_address_t srcAddress =
         reinterpret_cast<typename Traits::const_address_t>(sourceImage->getPixelAddress(getx, gety));
 
-      for (dx=0; dx<width; dx++) {
+      for (int dx=0; dx<width; dx++) {
         // Call the delegate for each pixel value.
         delegate(*srcAddress);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list