Qualify calls to certain functions from the cmath library.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include "Gwen/Controls/Slider.h"
|
||||
|
||||
using namespace Gwen;
|
||||
@@ -68,7 +69,7 @@ void Slider::SetValueInternal(float val)
|
||||
{
|
||||
if (m_bClampToNotches)
|
||||
{
|
||||
val = floor((val * (float)m_iNumNotches) + 0.5f);
|
||||
val = std::floor((val * (float)m_iNumNotches) + 0.5f);
|
||||
val /= (float)m_iNumNotches;
|
||||
}
|
||||
|
||||
@@ -98,4 +99,4 @@ void Slider::RenderFocus(Gwen::Skin::Base* skin)
|
||||
if (!IsTabable()) return;
|
||||
|
||||
skin->DrawKeyboardHighlight(this, GetRenderBounds(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user