From 79d5217c425b9e7d4c29b8401c731306be975f8a Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Thu, 9 Jun 2011 08:37:25 +0200 Subject: [PATCH] Minor fix in sf::Text --- include/SFML/System/Mutex.hpp | 4 ++-- src/SFML/Graphics/Text.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/SFML/System/Mutex.hpp b/include/SFML/System/Mutex.hpp index 677a2cfba..a7d7fa03d 100644 --- a/include/SFML/System/Mutex.hpp +++ b/include/SFML/System/Mutex.hpp @@ -138,8 +138,8 @@ private : /// /// SFML mutexes are recursive, which means that you can lock /// a mutex multiple times in the same thread without creating -/// a deadlock. In this case, the first call to Lock() will behave -/// as usual, and the following ones will have no effect. +/// a deadlock. In this case, the first call to Lock() behaves +/// as usual, and the following ones have no effect. /// However, you must call Unlock() exactly as many times as you /// called Lock(). If you don't, the mutex won't be released. /// diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index 8804f0e7e..b58bdd153 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -249,10 +249,10 @@ void Text::Render(RenderTarget&, Renderer& renderer) const } // Extract the current glyph's description - const Glyph& glyph = myFont->GetGlyph(curChar, myCharacterSize, bold); - int advance = glyph.Advance; - const IntRect& bounds = glyph.Bounds; - const FloatRect& coords = texture.GetTexCoords(glyph.SubRect); + const Glyph& glyph = myFont->GetGlyph(curChar, myCharacterSize, bold); + int advance = glyph.Advance; + const IntRect& bounds = glyph.Bounds; + FloatRect coords = texture.GetTexCoords(glyph.SubRect); int boundsRight = bounds.Left + bounds.Width; int boundsBottom = bounds.Top + bounds.Height;