From 552977e4b4cf42bed3005d3c3f26ce6bdb397da8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 27 Aug 2011 06:35:12 +0000 Subject: [PATCH] fix upside-down text on firefox/osx --- direct/src/plugin/p3dOsxSplashWindow.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/plugin/p3dOsxSplashWindow.cxx b/direct/src/plugin/p3dOsxSplashWindow.cxx index 7baa98541e..d02a689919 100644 --- a/direct/src/plugin/p3dOsxSplashWindow.cxx +++ b/direct/src/plugin/p3dOsxSplashWindow.cxx @@ -677,7 +677,9 @@ paint_progress_bar(CGContextRef context) { if (!_install_label.empty()) { // Now draw the install_label right above it. - CGContextSetTextMatrix(context, CGContextGetCTM(context)); + // Need to invert the text so it won't be upside-down. + CGAffineTransform text_xform = CGAffineTransformMakeScale(1, -1); + CGContextSetTextMatrix(context, text_xform); // Choose a suitable font. float text_height = 15.0;