From 8f5a8e4f9f8ab7a9762a7599cde3c825d2e28aef Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Mon, 23 Jun 2008 20:15:39 +0000 Subject: Mantis#1569. Thank you kindly, Nebadon for a patch that addresses: Rotation of terrains varies between all the formats, Raw and R32 seem to be the same, while PNG, JPG, BMP all seem to be rotated 180 degrees different. --- .../Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs b/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs index bb819e1..f87d3ee 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs @@ -67,7 +67,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders int y; for (y = 0; y < file.Height; y++) { - retval[x, y] = file.GetPixel(x, y).GetBrightness() * 128; + retval[x, y] = file.GetPixel(x, file.Height - y - 1).GetBrightness() * 128; } } @@ -170,4 +170,4 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders return bmp; } } -} \ No newline at end of file +} -- cgit v1.1