Forráskód Böngészése

Merge pull request #156 from rndfax/master

LayoutEngine/Round: use 'roundf' instead of 'ceilf'
David Wimsey 11 éve
szülő
commit
f01022231d
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Source/Core/LayoutEngine.cpp

+ 1 - 1
Source/Core/LayoutEngine.cpp

@@ -282,7 +282,7 @@ Vector2f& LayoutEngine::Round(Vector2f& value)
 // Rounds a floating-point value to an integral value.
 float LayoutEngine::Round(float value)
 {
-	return ceilf(value);
+	return roundf(value);
 }
 
 void* LayoutEngine::AllocateLayoutChunk(size_t size)