diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/UbitMeshing/SculptMap.cs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs b/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs index b3d9cb6..054caf3 100644 --- a/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs +++ b/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs | |||
@@ -25,14 +25,10 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | // to build without references to System.Drawing, comment this out | ||
29 | #define SYSTEM_DRAWING | ||
30 | |||
31 | using System; | 28 | using System; |
32 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
33 | using System.Text; | 30 | using System.Text; |
34 | 31 | ||
35 | #if SYSTEM_DRAWING | ||
36 | using System.Drawing; | 32 | using System.Drawing; |
37 | using System.Drawing.Imaging; | 33 | using System.Drawing.Imaging; |
38 | 34 | ||
@@ -140,7 +136,6 @@ namespace PrimMesher | |||
140 | int rowNdx, colNdx; | 136 | int rowNdx, colNdx; |
141 | int smNdx = 0; | 137 | int smNdx = 0; |
142 | 138 | ||
143 | |||
144 | for (rowNdx = 0; rowNdx < numRows; rowNdx++) | 139 | for (rowNdx = 0; rowNdx < numRows; rowNdx++) |
145 | { | 140 | { |
146 | List<Coord> row = new List<Coord>(numCols); | 141 | List<Coord> row = new List<Coord>(numCols); |
@@ -163,11 +158,11 @@ namespace PrimMesher | |||
163 | { | 158 | { |
164 | 159 | ||
165 | Bitmap scaledImage = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb); | 160 | Bitmap scaledImage = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb); |
166 | 161 | ||
167 | Color c; | 162 | Color c; |
168 | float xscale = srcImage.Width / destWidth; | 163 | float xscale = srcImage.Width / destWidth; |
169 | float yscale = srcImage.Height / destHeight; | 164 | float yscale = srcImage.Height / destHeight; |
170 | 165 | ||
171 | float sy = 0.5f; | 166 | float sy = 0.5f; |
172 | for (int y = 0; y < destHeight; y++) | 167 | for (int y = 0; y < destHeight; y++) |
173 | { | 168 | { |
@@ -190,8 +185,5 @@ namespace PrimMesher | |||
190 | srcImage.Dispose(); | 185 | srcImage.Dispose(); |
191 | return scaledImage; | 186 | return scaledImage; |
192 | } | 187 | } |
193 | |||
194 | } | ||
195 | |||
196 | } | 188 | } |
197 | #endif | 189 | } \ No newline at end of file |