From 551bebdc84515d77bc3d7a564100efd0525a1949 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sun, 22 Feb 2009 01:18:49 +0000 Subject: Update svn properties, add copyright headers, minor formatting cleanup. --- OpenSim/Region/Application/OpenSim.cs | 10 +++--- .../Scripting/VectorRender/VectorRenderModule.cs | 42 +++++++++++----------- 2 files changed, 26 insertions(+), 26 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 9f8add2..3a4276f 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -404,11 +404,11 @@ namespace OpenSim // Allow absolute and relative specifiers if (cmd[3].StartsWith("/") || cmd[3].StartsWith("\\") || cmd[3].StartsWith("..") || cmd[3].EndsWith(".xml")) regionFile = cmd[3]; - else - { - m_console.Error("Usage: create region "); - } - + else + { + m_console.Error("Usage: create region "); + } + CreateRegion(new RegionInfo(cmd[2], regionFile, false, ConfigSource.Source), true); } diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs index 2ef89b7..e7fabbe 100644 --- a/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs @@ -229,10 +229,10 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender alpha = temp; } } - // Allow a bitmap w/o the alpha component to be created - else if (value.ToLower() == "false") { - alpha = 256; - } + // Allow a bitmap w/o the alpha component to be created + else if (value.ToLower() == "false") { + alpha = 256; + } break; case "bgcolour": int hex = 0; @@ -276,16 +276,16 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender } } - Bitmap bitmap; - - if ( alpha == 256 ) - { - bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); - } - else { - - bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); - } + Bitmap bitmap; + + if (alpha == 256) + { + bitmap = new Bitmap(width, height, PixelFormat.Format32bppRgb); + } + else + { + bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); + } Graphics graph = Graphics.FromImage(bitmap); @@ -298,13 +298,13 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender for (int w = 0; w < bitmap.Width; w++) { - if (alpha <= 255) - { - for (int h = 0; h < bitmap.Height; h++) - { - bitmap.SetPixel(w, h, Color.FromArgb(alpha, bitmap.GetPixel(w, h))); - } - } + if (alpha <= 255) + { + for (int h = 0; h < bitmap.Height; h++) + { + bitmap.SetPixel(w, h, Color.FromArgb(alpha, bitmap.GetPixel(w, h))); + } + } } GDIDraw(data, graph); -- cgit v1.1