aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/src/Helpers.cpp
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-10 13:46:12 +0100
committerAndreas Grois <andi@grois.info>2018-03-10 13:46:12 +0100
commit710c12067531e6e05280d081203aeb3b945669a9 (patch)
tree3b89e9775a8515b1972cb96b71fbe0a110cc2ff5 /BuddhaTest/src/Helpers.cpp
parent01b47b49462a3b6ade6e8819edad9f2455fe1143 (diff)
Fix mirroring in png output
Restrict starting value range to positive y-values, probably improving random quality
Diffstat (limited to 'BuddhaTest/src/Helpers.cpp')
-rw-r--r--BuddhaTest/src/Helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuddhaTest/src/Helpers.cpp b/BuddhaTest/src/Helpers.cpp
index b092dc2..abe09fd 100644
--- a/BuddhaTest/src/Helpers.cpp
+++ b/BuddhaTest/src/Helpers.cpp
@@ -174,7 +174,7 @@ namespace Helpers
}
for(int i = 0; i < height/2;++i)
{
- for(int j = 0; j < width;++j)
+ for(int j = 0; j < width*3;++j)
{
png_byte average = (rows[i][j] + rows[height-i-1][j])/2;
rows[i][j] = rows[height-i-1][j] = average;