Skip to content

Commit

Permalink
Minor change in get_neighboring_pixels()
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Dec 4, 2015
1 parent 5dc149d commit 6ab858b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/filters/neighboring_pixels.h
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit 6ab858b

Please sign in to comment.