aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorCharles Krinke2009-05-17 18:09:39 +0000
committerCharles Krinke2009-05-17 18:09:39 +0000
commit74f1c16c49747d9095db22554e0c9a15e601e7f3 (patch)
tree87ef885e7c18b1f84802e40de02ccb7a680b25d8 /OpenSim
parentRenaming [ServiceConnectors] back to [Modules]. (diff)
downloadopensim-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.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs2
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);