Skip to content

Commit

Permalink
minor reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Nov 29, 2024
1 parent 751577b commit ba94873
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/svgren/filter_applier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ void box_blur_horizontal(

dst_line[x] = (sum / box_size).to<image_type::pixel_type::value_type>();

sum += src_line[next].to<unsigned>() - src_line[last].to<unsigned>();
sum += src_line[next].to<unsigned>();
sum -= src_line[last].to<unsigned>();
}
}
}
Expand Down Expand Up @@ -118,7 +119,8 @@ void box_blur_vertical(

dst[y][x] = (sum / box_size).to<image_type::pixel_type::value_type>();

sum += src[next][x].to<unsigned>() - src[last][x].to<unsigned>();
sum += src[next][x].to<unsigned>();
sum -= src[last][x].to<unsigned>();
}
}
}
Expand Down

0 comments on commit ba94873

Please sign in to comment.