From 8a44751b610f64ec23974f4e033585430362af32 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 1 Jul 2013 14:06:38 +0200 Subject: [PATCH] Mirrored text display bugfix. --- common/gal/stroke_font.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/gal/stroke_font.cpp b/common/gal/stroke_font.cpp index 3f0958284e..778c0a537d 100644 --- a/common/gal/stroke_font.cpp +++ b/common/gal/stroke_font.cpp @@ -183,10 +183,13 @@ void STROKE_FONT::Draw( std::string aText, const VECTOR2D& aPosition, double aRo break; case GR_TEXT_HJUSTIFY_RIGHT: - m_gal->Translate( VECTOR2D( -textsize.x, 0 ) ); + if( !m_mirrored ) + m_gal->Translate( VECTOR2D( -textsize.x, 0 ) ); break; case GR_TEXT_HJUSTIFY_LEFT: + if( m_mirrored ) + m_gal->Translate( VECTOR2D( -textsize.x, 0 ) ); break; default: