diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-28 12:22:14 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-28 12:22:14 +0000 |
commit | 737154b1ef16ef037df988eaa64a5063df1d815c (patch) | |
tree | 7fc1aed8147c03a18c67d95d0d6369ff89438a6d | |
parent | 2bbc5e81add2ea7339e1115061259619f9f5ae92 (diff) |
Read PNGs the right way up (damnit)
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@78 bf6ca9ba-c028-0410-8290-897cf20841d1
-rw-r--r-- | src/readpng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readpng.c b/src/readpng.c index 20fc182..14e5fe2 100644 --- a/src/readpng.c +++ b/src/readpng.c @@ -133,7 +133,7 @@ int readpng_read(const char *filename, double tilt, ControlContext *ctx) { } } - image[x + width*y] = val; + image[x + width*(height-1-y)] = val; } } |