From 88ecacfd7a3d3b51b527c7bd1377102b799a50cd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 9 Oct 2002 15:41:22 +0000 Subject: [PATCH] Changed the default value of StandardOrientation to true, to fix orientation problems which commonly occur with png files. Leaves the quesition of how to set this value automatically. --- src/osgPlugins/png/ReaderWriterPNG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/png/ReaderWriterPNG.cpp b/src/osgPlugins/png/ReaderWriterPNG.cpp index a2e231f61..59ee8b143 100644 --- a/src/osgPlugins/png/ReaderWriterPNG.cpp +++ b/src/osgPlugins/png/ReaderWriterPNG.cpp @@ -102,7 +102,7 @@ class ReaderWriterPNG : public osgDB::ReaderWriter data = (png_bytep) malloc(png_get_rowbytes(png, info)*height); row_p = (png_bytep *) malloc(sizeof(png_bytep)*height); - bool StandardOrientation = false; + bool StandardOrientation = true; for (i = 0; i < height; i++) { if (StandardOrientation)