mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Shape::setOutlineThickness now allows negative values
This commit is contained in:
parent
e3261f0430
commit
26d5620817
@ -120,8 +120,9 @@ public :
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Set the thickness of the shape's outline
|
/// \brief Set the thickness of the shape's outline
|
||||||
///
|
///
|
||||||
/// This number cannot be negative. Using zero disables
|
/// Note that negative values are allowed (so that the outline
|
||||||
/// the outline.
|
/// expands towards the center of the shape), and using zero
|
||||||
|
/// disables the outline.
|
||||||
/// By default, the outline thickness is 0.
|
/// By default, the outline thickness is 0.
|
||||||
///
|
///
|
||||||
/// \param thickness New outline thickness
|
/// \param thickness New outline thickness
|
||||||
|
@ -213,7 +213,7 @@ void Shape::draw(RenderTarget& target, RenderStates states) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Render the outline
|
// Render the outline
|
||||||
if ((m_outlineColor.a > 0) && (m_outlineThickness > 0))
|
if ((m_outlineColor.a > 0) && (m_outlineThickness != 0))
|
||||||
{
|
{
|
||||||
states.texture = NULL;
|
states.texture = NULL;
|
||||||
target.draw(m_outlineVertices, states);
|
target.draw(m_outlineVertices, states);
|
||||||
|
Loading…
Reference in New Issue
Block a user