From e62684db3404aab01d9e3e2d12bcab4b800cc855 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 17 Aug 2007 07:14:03 +0000 Subject: [PATCH] disable pixmap cache under X11 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19616 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QLPainter.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/QLPainter.cpp b/src/frontends/qt4/QLPainter.cpp index 858bbbeba7..b9bbf6a686 100644 --- a/src/frontends/qt4/QLPainter.cpp +++ b/src/frontends/qt4/QLPainter.cpp @@ -29,9 +29,13 @@ #include #include -// Set this to one for enabling the use of a Pixmap cache when drawing -// text. This is especially useful for older PPC/Mac systems. +// Set USE_PIXMAP_CACHE to 1 for enabling the use of a Pixmap cache when +// drawing text. This is especially useful for older PPC/Mac systems. +#ifdef Q_WS_X11 +#define USE_PIXMAP_CACHE 0 +#else #define USE_PIXMAP_CACHE 1 +#endif using std::endl; using std::string;