]> git.lyx.org Git - lyx.git/commitdiff
disable pixmap cache under X11
authorAbdelrazak Younes <younes@lyx.org>
Fri, 17 Aug 2007 07:14:03 +0000 (07:14 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 17 Aug 2007 07:14:03 +0000 (07:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19616 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QLPainter.cpp

index 858bbbeba71c82f728829ee4ccc38937e9eb8dfb..b9bbf6a686123209ecbc8fae67ba2227ff00ee8e 100644 (file)
 #include <QPixmapCache>
 #include <QTextLayout>
 
-// 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;