diff options
author | Charles Krinke | 2009-05-17 18:09:39 +0000 |
---|---|---|
committer | Charles Krinke | 2009-05-17 18:09:39 +0000 |
commit | 74f1c16c49747d9095db22554e0c9a15e601e7f3 (patch) | |
tree | 87ef885e7c18b1f84802e40de02ccb7a680b25d8 | |
parent | Renaming [ServiceConnectors] back to [Modules]. (diff) | |
download | opensim-SC_OLD-74f1c16c49747d9095db22554e0c9a15e601e7f3.zip opensim-SC_OLD-74f1c16c49747d9095db22554e0c9a15e601e7f3.tar.gz opensim-SC_OLD-74f1c16c49747d9095db22554e0c9a15e601e7f3.tar.bz2 opensim-SC_OLD-74f1c16c49747d9095db22554e0c9a15e601e7f3.tar.xz |
Thank you kindly, Jonc, for a patch that solves
the issue of a console command 'export-map file.jpg'
having the map flipped when exported.
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index a2bbb3e..ef87f46 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | |||
@@ -906,7 +906,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
906 | { | 906 | { |
907 | ushort x = (ushort)((mapBlocks[i].X - m_scene.RegionInfo.RegionLocX) + 10); | 907 | ushort x = (ushort)((mapBlocks[i].X - m_scene.RegionInfo.RegionLocX) + 10); |
908 | ushort y = (ushort)((mapBlocks[i].Y - m_scene.RegionInfo.RegionLocY) + 10); | 908 | ushort y = (ushort)((mapBlocks[i].Y - m_scene.RegionInfo.RegionLocY) + 10); |
909 | g.DrawImage(bitImages[i], (x * 128), (y * 128), 128, 128); | 909 | g.DrawImage(bitImages[i], (x * 128), 2560 - (y * 128), 128, 128); // y origin is top |
910 | } | 910 | } |
911 | 911 | ||
912 | mapTexture.Save(exportPath, ImageFormat.Jpeg); | 912 | mapTexture.Save(exportPath, ImageFormat.Jpeg); |