Fixed some more build warnings

0.8
Bruno Van de Velde 2018-05-11 12:49:39 +02:00
parent 8b0059ac7b
commit 1de0f585e2
5 changed files with 5 additions and 4 deletions

View File

@ -75,7 +75,7 @@ namespace tgui
///
/// @return Shared renderer data
///
/// @throw
/// @throw Exception if theme loader fails to load the requested renderer
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
std::shared_ptr<RendererData> getRenderer(const std::string& id);

View File

@ -90,7 +90,7 @@ namespace tgui
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @brief Returns whether a texture was set
///
/// @param Has a valid texture been assigned to this sprite?
/// @return Has a valid texture been assigned to this sprite?
///
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool isSet() const;

View File

@ -99,6 +99,7 @@ namespace tgui
/// @param text The text to wrap
/// @param font Font of the text
/// @param textSize The text size
/// @param bold Should the text be bold?
/// @param dropLeadingSpace Should a single space at the beginning of a line be removed?
///
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -292,7 +292,7 @@ namespace tgui
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @brief Changes whether a tab is enabled
/// @param index The index of the tab to enable or disable
/// @param visible Is the tab enabled?
/// @param enabled Is the tab enabled?
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void setTabEnabled(std::size_t index, bool enabled);

View File

@ -158,7 +158,7 @@ namespace tgui
pos = getInverseTransform().transformPoint(pos) + getInverseTransform().transformPoint(offset);
// Watch out for rounding errors
const float epsilon = 0.00001;
const float epsilon = 0.00001f;
if ((pos.x < 0) && (pos.x > -epsilon))
pos.x = 0;
if ((pos.y < 0) && (pos.y > -epsilon))