diff options
author | Adam Frisby | 2008-05-01 18:04:42 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-01 18:04:42 +0000 |
commit | 20a9bf08f51351e1e0a9de94f184ff56cd572665 (patch) | |
tree | 52da64dab26353b903c8e4befed0178fa72a188b /OpenSim/Region/Environment/Modules/Scripting/VectorRender | |
parent | More config cleanup in LaunchSLClient. (diff) | |
download | opensim-SC-20a9bf08f51351e1e0a9de94f184ff56cd572665.zip opensim-SC-20a9bf08f51351e1e0a9de94f184ff56cd572665.tar.gz opensim-SC-20a9bf08f51351e1e0a9de94f184ff56cd572665.tar.bz2 opensim-SC-20a9bf08f51351e1e0a9de94f184ff56cd572665.tar.xz |
* Rolled back a few changes.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting/VectorRender')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs index 8e434c7..626c60f 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -48,6 +48,10 @@ 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 | |||
51 | #region IDynamicTextureRender Members | 55 | #region IDynamicTextureRender Members |
52 | 56 | ||
53 | public string GetContentType() | 57 | public string GetContentType() |
@@ -134,7 +138,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
134 | catch (Exception e) | 138 | catch (Exception e) |
135 | { | 139 | { |
136 | //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used | 140 | //Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used |
137 | Console.WriteLine("Problem with Draw. Please verify parameters." + e); | 141 | Console.WriteLine("Problem with Draw. Please verify parameters." + e.ToString()); |
138 | } | 142 | } |
139 | 143 | ||
140 | if ((size < 128) || (size > 1024)) | 144 | if ((size < 128) || (size > 1024)) |
@@ -256,7 +260,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
256 | endPoint.X = (int) x; | 260 | endPoint.X = (int) x; |
257 | endPoint.Y = (int) y; | 261 | endPoint.Y = (int) y; |
258 | Image image = ImageHttpRequest(nextLine); | 262 | Image image = ImageHttpRequest(nextLine); |
259 | graph.DrawImage(image, startPoint.X, startPoint.Y, x, y); | 263 | graph.DrawImage(image, (float) startPoint.X, (float) startPoint.Y, x, y); |
260 | startPoint.X += endPoint.X; | 264 | startPoint.X += endPoint.X; |
261 | startPoint.Y += endPoint.Y; | 265 | startPoint.Y += endPoint.Y; |
262 | } | 266 | } |
@@ -349,7 +353,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
349 | 353 | ||
350 | private Bitmap ImageHttpRequest(string url) | 354 | private Bitmap ImageHttpRequest(string url) |
351 | { | 355 | { |
352 | WebRequest request = WebRequest.Create(url); | 356 | WebRequest request = HttpWebRequest.Create(url); |
353 | //Ckrinke: Comment out for now as 'str' is unused. Bring it back into play later when it is used. | 357 | //Ckrinke: Comment out for now as 'str' is unused. Bring it back into play later when it is used. |
354 | //Ckrinke Stream str = null; | 358 | //Ckrinke Stream str = null; |
355 | HttpWebResponse response = (HttpWebResponse) (request).GetResponse(); | 359 | HttpWebResponse response = (HttpWebResponse) (request).GetResponse(); |