diff options
author | Sean Dague | 2008-02-15 13:00:47 +0000 |
---|---|---|
committer | Sean Dague | 2008-02-15 13:00:47 +0000 |
commit | 2f6e1ac34dfb09b507b68e0abcad2e4d4f497f80 (patch) | |
tree | a65bf886ef6c573995d31c6cbd2d117579c26d48 /OpenSim/Region/Environment/Modules | |
parent | * Temporary measure of deleting the Mono addin cache dir of addin-db-000/ on ... (diff) | |
download | opensim-SC-2f6e1ac34dfb09b507b68e0abcad2e4d4f497f80.zip opensim-SC-2f6e1ac34dfb09b507b68e0abcad2e4d4f497f80.tar.gz opensim-SC-2f6e1ac34dfb09b507b68e0abcad2e4d4f497f80.tar.bz2 opensim-SC-2f6e1ac34dfb09b507b68e0abcad2e4d4f497f80.tar.xz |
allow for 1024x1024 textures through osSetDynamicTextureURL. Follow up patch
to do smarter resize coming this afternoon.
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/LoadImageURLModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs b/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs index 787e6f1..dc894e4 100644 --- a/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs +++ b/OpenSim/Region/Environment/Modules/LoadImageURLModule.cs | |||
@@ -126,7 +126,7 @@ namespace OpenSim.Region.Environment.Modules | |||
126 | if (response.StatusCode == HttpStatusCode.OK) | 126 | if (response.StatusCode == HttpStatusCode.OK) |
127 | { | 127 | { |
128 | Bitmap image = new Bitmap(response.GetResponseStream()); | 128 | Bitmap image = new Bitmap(response.GetResponseStream()); |
129 | Bitmap resize = new Bitmap(image, new Size(512, 512)); | 129 | Bitmap resize = new Bitmap(image, new Size(1024, 1024)); |
130 | byte[] imageJ2000 = OpenJPEG.EncodeFromImage(resize, true); | 130 | byte[] imageJ2000 = OpenJPEG.EncodeFromImage(resize, true); |
131 | 131 | ||
132 | m_textureManager.ReturnData(state.RequestID, imageJ2000); | 132 | m_textureManager.ReturnData(state.RequestID, imageJ2000); |
@@ -146,4 +146,4 @@ namespace OpenSim.Region.Environment.Modules | |||
146 | } | 146 | } |
147 | } | 147 | } |
148 | } | 148 | } |
149 | } \ No newline at end of file | 149 | } |