From 7a11f6f1e2fbdbe6ab64444bf60ece8e7b3ccfd5 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 18 Jun 2008 02:35:53 +0000 Subject: make neb happy. I found where we initialized the dynamic textures to 32bit images and changed them to 24bit images. --- .../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 95e6c32..0e3780c 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.Format32bppArgb); + joint = new Bitmap(back.Width, back.Height, PixelFormat.Format24bppRgb); 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 27f1182..8ad537a 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.Format32bppArgb); + Bitmap bitmap = new Bitmap(size, size, PixelFormat.Format24bppRgb); Graphics graph = Graphics.FromImage(bitmap); -- cgit v1.1