From 7ec667d2791af819abb54da4e04ef7dd8b1e13a1 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Mon, 2 Feb 2009 13:58:01 +0000 Subject: [patching previous patch and also taking the chance of fixing the previous commit message] This patch reimplements the Draw method in the VectorRenderModule which is used to create dynamic textures. The previous version was limited to creating square dynamic textures, it also didnt allow for dynamically loading an image containing transparency except at 256x256. The extraParams string in such functions as osSetDynamicTextureData can now be passed a comma seperated string of name value pairs which set the width,height and alpha value of dynamic textures. e.g. "height:512,width:2048,alpha:255" Backward compatibility is still preserved so passing the old params of either a string integer "256" "512" will still work in the same fashion as will passing "setAlpha" on its own --- .../Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs index cf83cc0..ec1ee3f 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs @@ -232,8 +232,8 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender temp = parseIntParam(name); if (temp != -1) { - if (temp > 1028) - temp = 1028; + if (temp > 1024) + temp = 1024; if (temp < 128) temp = 128; -- cgit v1.1