diff options
author | Adam Frisby | 2008-05-01 16:35:00 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-01 16:35:00 +0000 |
commit | 13526097f24b7a8ad63b1d482c44b44397fa055f (patch) | |
tree | 7a82c20ed7c63e2aea5ad3863325e37f64e1cbea /OpenSim/Region/Environment/Modules/Scripting/VectorRender | |
parent | * Breaking all the code, breaking all the code..! (diff) | |
download | opensim-SC_OLD-13526097f24b7a8ad63b1d482c44b44397fa055f.zip opensim-SC_OLD-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.gz opensim-SC_OLD-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.bz2 opensim-SC_OLD-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.xz |
* Spring cleaning on Region.Environment.
* Converted a large number of read-only fields to be actually, readonly.
* Reformatted code sections.
* Removed redundant code.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting/VectorRender')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs index 626c60f..8e434c7 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -48,10 +48,6 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
48 | private Scene m_scene; | 48 | private Scene m_scene; |
49 | private IDynamicTextureManager m_textureManager; | 49 | private IDynamicTextureManager m_textureManager; |
50 | 50 | ||
51 | public VectorRenderModule() | ||
52 | { | ||
53 | } | ||
54 | |||
55 | #region IDynamicTextureRender Members | 51 | #region IDynamicTextureRender Members |
56 | 52 | ||
57 | public string GetContentType() | 53 | public string GetContentType() |
@@ -138,7 +134,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
138 | catch (Exception e) | 134 | catch (Exception e) |
139 | { | 135 | { |
140 | //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used | 136 | //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used |
141 | Console.WriteLine("Problem with Draw. Please verify parameters." + e.ToString()); | 137 | Console.WriteLine("Problem with Draw. Please verify parameters." + e); |
142 | } | 138 | } |
143 | 139 | ||
144 | if ((size < 128) || (size > 1024)) | 140 | if ((size < 128) || (size > 1024)) |
@@ -260,7 +256,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
260 | endPoint.X = (int) x; | 256 | endPoint.X = (int) x; |
261 | endPoint.Y = (int) y; | 257 | endPoint.Y = (int) y; |
262 | Image image = ImageHttpRequest(nextLine); | 258 | Image image = ImageHttpRequest(nextLine); |
263 | graph.DrawImage(image, (float) startPoint.X, (float) startPoint.Y, x, y); | 259 | graph.DrawImage(image, startPoint.X, startPoint.Y, x, y); |
264 | startPoint.X += endPoint.X; | 260 | startPoint.X += endPoint.X; |
265 | startPoint.Y += endPoint.Y; | 261 | startPoint.Y += endPoint.Y; |
266 | } | 262 | } |
@@ -353,7 +349,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
353 | 349 | ||
354 | private Bitmap ImageHttpRequest(string url) | 350 | private Bitmap ImageHttpRequest(string url) |
355 | { | 351 | { |
356 | WebRequest request = HttpWebRequest.Create(url); | 352 | WebRequest request = WebRequest.Create(url); |
357 | //Ckrinke: Comment out for now as 'str' is unused. Bring it back into play later when it is used. | 353 | //Ckrinke: Comment out for now as 'str' is unused. Bring it back into play later when it is used. |
358 | //Ckrinke Stream str = null; | 354 | //Ckrinke Stream str = null; |
359 | HttpWebResponse response = (HttpWebResponse) (request).GetResponse(); | 355 | HttpWebResponse response = (HttpWebResponse) (request).GetResponse(); |