summaryrefslogtreecommitdiff
path: root/examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp')
-rw-r--r--examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp
index 14ac064bd..fe161ab35 100644
--- a/examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp
+++ b/examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp
@@ -11,6 +11,7 @@
#include "Gwen/Platform.h"
#include <math.h>
+#include <cmath>
using namespace Gwen;
using namespace Gwen::Controls;
@@ -89,9 +90,10 @@ void TextBox::Render(Skin::Base* skin)
}
// Draw caret
- if (fmod(Gwen::Platform::GetTimeInSeconds() - m_fLastInputTime, 1.0f) > 0.5f)
- skin->GetRender()->SetDrawColor(Gwen::Color(255, 255, 255, 255));
- else
+ if (std::fmod(Gwen::Platform::GetTimeInSeconds() - m_fLastInputTime,
+ 1.0f) > 0.5f)
+ skin->GetRender()->SetDrawColor(Gwen::Color(255, 255, 255, 255));
+ else
skin->GetRender()->SetDrawColor(Gwen::Color(0, 0, 0, 255));
skin->GetRender()->DrawFilledRect(m_rectCaretBounds);