Minor fix in sf::Text
This commit is contained in:
parent
df61292f65
commit
79d5217c42
@ -138,8 +138,8 @@ private :
|
|||||||
///
|
///
|
||||||
/// SFML mutexes are recursive, which means that you can lock
|
/// SFML mutexes are recursive, which means that you can lock
|
||||||
/// a mutex multiple times in the same thread without creating
|
/// a mutex multiple times in the same thread without creating
|
||||||
/// a deadlock. In this case, the first call to Lock() will behave
|
/// a deadlock. In this case, the first call to Lock() behaves
|
||||||
/// as usual, and the following ones will have no effect.
|
/// as usual, and the following ones have no effect.
|
||||||
/// However, you must call Unlock() exactly as many times as you
|
/// However, you must call Unlock() exactly as many times as you
|
||||||
/// called Lock(). If you don't, the mutex won't be released.
|
/// called Lock(). If you don't, the mutex won't be released.
|
||||||
///
|
///
|
||||||
|
@ -249,10 +249,10 @@ void Text::Render(RenderTarget&, Renderer& renderer) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extract the current glyph's description
|
// Extract the current glyph's description
|
||||||
const Glyph& glyph = myFont->GetGlyph(curChar, myCharacterSize, bold);
|
const Glyph& glyph = myFont->GetGlyph(curChar, myCharacterSize, bold);
|
||||||
int advance = glyph.Advance;
|
int advance = glyph.Advance;
|
||||||
const IntRect& bounds = glyph.Bounds;
|
const IntRect& bounds = glyph.Bounds;
|
||||||
const FloatRect& coords = texture.GetTexCoords(glyph.SubRect);
|
FloatRect coords = texture.GetTexCoords(glyph.SubRect);
|
||||||
|
|
||||||
int boundsRight = bounds.Left + bounds.Width;
|
int boundsRight = bounds.Left + bounds.Width;
|
||||||
int boundsBottom = bounds.Top + bounds.Height;
|
int boundsBottom = bounds.Top + bounds.Height;
|
||||||
|
Loading…
Reference in New Issue
Block a user