Fixed some more build warnings
parent
8b0059ac7b
commit
1de0f585e2
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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?
|
||||
///
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue