From 84931236290214d99eab20fc355e2fcaf2aa7470 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Wed, 1 Apr 2009 18:38:51 +0000 Subject: Hard code scaled image resolution to 96 dpi prior to sculpt meshing to prevent a mono 2.4 failure. Thanks to cmickeyb for pointing out the failure. --- OpenSim/Region/Physics/Meshing/SculptMesh.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Physics/Meshing') diff --git a/OpenSim/Region/Physics/Meshing/SculptMesh.cs b/OpenSim/Region/Physics/Meshing/SculptMesh.cs index 0e39d73..b458ed4 100644 --- a/OpenSim/Region/Physics/Meshing/SculptMesh.cs +++ b/OpenSim/Region/Physics/Meshing/SculptMesh.cs @@ -69,8 +69,8 @@ namespace PrimMesher Bitmap scaledImage = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb); - scaledImage.SetResolution(srcImage.HorizontalResolution, - srcImage.VerticalResolution); + + scaledImage.SetResolution(96.0f, 96.0f); Graphics grPhoto = Graphics.FromImage(scaledImage); grPhoto.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear; -- cgit v1.1