From 900631b74b81cc20c1f8ec24b7d37ddb3fbbe685 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 30 Oct 2011 19:26:35 +1000 Subject: [PATCH] Enable RenderText for Mac to solve text corruption problem --- Graphs/gGraphView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Graphs/gGraphView.cpp b/Graphs/gGraphView.cpp index 35c75068..53757204 100644 --- a/Graphs/gGraphView.cpp +++ b/Graphs/gGraphView.cpp @@ -4,6 +4,12 @@ #include "SleepLib/profiles.h" #include #include + +#ifdef Q_WS_MAC +#define USE_RENDERTEXT +#endif + + bool _graph_init=false; QFont * defaultfont=NULL; @@ -1696,7 +1702,6 @@ void gGraphView::DrawTextQue() { glPushAttrib(GL_COLOR_BUFFER_BIT); int w,h; -//#define USE_RENDERTEXT QPainter painter; #ifndef USE_RENDERTEXT painter.begin(this);