From 3ea8f12555b4e15aa3225589d2a893e690f540e3 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 12 Dec 2016 11:51:36 +0100 Subject: [PATCH] Handle flipped view text rendering for Cairo --- include/gal/graphics_abstraction_layer.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/gal/graphics_abstraction_layer.h b/include/gal/graphics_abstraction_layer.h index 973c1c0bf5..c6bc0643a4 100644 --- a/include/gal/graphics_abstraction_layer.h +++ b/include/gal/graphics_abstraction_layer.h @@ -310,7 +310,15 @@ public: double aRotationAngle ) { // Fallback: use stroke font + + // Handle flipped view + if( globalFlipX ) + textProperties.m_mirrored = !textProperties.m_mirrored; + StrokeText( aText, aPosition, aRotationAngle ); + + if( globalFlipX ) + textProperties.m_mirrored = !textProperties.m_mirrored; } /**