diff options
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 1141f54..f5f83ca 100755 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -246,11 +246,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
246 | // try to work around that scale down X and Y acording to region size, so reducing the resolution | 246 | // try to work around that scale down X and Y acording to region size, so reducing the resolution |
247 | // | 247 | // |
248 | // viewers need to scale up | 248 | // viewers need to scale up |
249 | float scaleX = m_parentScene.RegionInfo.RegionSizeX / Constants.RegionSize; | 249 | float scaleX = (float)m_parentScene.RegionInfo.RegionSizeX / (float)Constants.RegionSize; |
250 | if (scaleX == 0) | 250 | if (scaleX == 0) |
251 | scaleX = 1.0f; | 251 | scaleX = 1.0f; |
252 | scaleX = 1.0f / scaleX; | 252 | scaleX = 1.0f / scaleX; |
253 | float scaleY = m_parentScene.RegionInfo.RegionSizeY / Constants.RegionSize; | 253 | float scaleY = (float)m_parentScene.RegionInfo.RegionSizeY / (float)Constants.RegionSize; |
254 | if (scaleY == 0) | 254 | if (scaleY == 0) |
255 | scaleY = 1.0f; | 255 | scaleY = 1.0f; |
256 | scaleY = 1.0f / scaleY; | 256 | scaleY = 1.0f / scaleY; |