From eda34a6d3a6d67feedcd93adeff746961d13885e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 18 Jun 2008 14:04:24 +0000 Subject: revert 5134. Changing these bitmaps to 24bit just breaks things, and they never display on the client. --- .../Modules/Scripting/DynamicTexture/DynamicTextureModule.cs | 2 +- .../Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs index 0e3780c..95e6c32 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs @@ -270,7 +270,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture Bitmap joint; Graphics jG; - joint = new Bitmap(back.Width, back.Height, PixelFormat.Format24bppRgb); + joint = new Bitmap(back.Width, back.Height, PixelFormat.Format32bppArgb); jG = Graphics.FromImage(joint); jG.DrawImage(back, 0, 0, back.Width, back.Height); diff --git a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs index 8ad537a..27f1182 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs @@ -144,7 +144,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender if ((size < 128) || (size > 1024)) size = 256; - Bitmap bitmap = new Bitmap(size, size, PixelFormat.Format24bppRgb); + Bitmap bitmap = new Bitmap(size, size, PixelFormat.Format32bppArgb); Graphics graph = Graphics.FromImage(bitmap); -- cgit v1.1