diff options
author | Charles Krinke | 2008-06-23 20:15:39 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-23 20:15:39 +0000 |
commit | 8f5a8e4f9f8ab7a9762a7599cde3c825d2e28aef (patch) | |
tree | e2dea2b34986c0246afce624b80342b0fd7ec7ed /OpenSim | |
parent | fix typo in Inventory nhibernate mappings. nhibernate should (diff) | |
download | opensim-SC-8f5a8e4f9f8ab7a9762a7599cde3c825d2e28aef.zip opensim-SC-8f5a8e4f9f8ab7a9762a7599cde3c825d2e28aef.tar.gz opensim-SC-8f5a8e4f9f8ab7a9762a7599cde3c825d2e28aef.tar.bz2 opensim-SC-8f5a8e4f9f8ab7a9762a7599cde3c825d2e28aef.tar.xz |
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.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Terrain/FileLoaders/GenericSystemDrawing.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
67 | int y; | 67 | int y; |
68 | for (y = 0; y < file.Height; y++) | 68 | for (y = 0; y < file.Height; y++) |
69 | { | 69 | { |
70 | retval[x, y] = file.GetPixel(x, y).GetBrightness() * 128; | 70 | retval[x, y] = file.GetPixel(x, file.Height - y - 1).GetBrightness() * 128; |
71 | } | 71 | } |
72 | } | 72 | } |
73 | 73 | ||
@@ -170,4 +170,4 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders | |||
170 | return bmp; | 170 | return bmp; |
171 | } | 171 | } |
172 | } | 172 | } |
173 | } \ No newline at end of file | 173 | } |