mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-18 03:30:48 +00:00
Enable RenderText for Mac to solve text corruption problem
This commit is contained in:
parent
26c1690ba4
commit
900631b74b
@ -4,6 +4,12 @@
|
|||||||
#include "SleepLib/profiles.h"
|
#include "SleepLib/profiles.h"
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
#define USE_RENDERTEXT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
bool _graph_init=false;
|
bool _graph_init=false;
|
||||||
|
|
||||||
QFont * defaultfont=NULL;
|
QFont * defaultfont=NULL;
|
||||||
@ -1696,7 +1702,6 @@ void gGraphView::DrawTextQue()
|
|||||||
{
|
{
|
||||||
glPushAttrib(GL_COLOR_BUFFER_BIT);
|
glPushAttrib(GL_COLOR_BUFFER_BIT);
|
||||||
int w,h;
|
int w,h;
|
||||||
//#define USE_RENDERTEXT
|
|
||||||
QPainter painter;
|
QPainter painter;
|
||||||
#ifndef USE_RENDERTEXT
|
#ifndef USE_RENDERTEXT
|
||||||
painter.begin(this);
|
painter.begin(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user