From b40f27f54c5d4f80930e85634ce5237677dc3715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 26 May 2012 09:05:05 +0200 Subject: [PATCH] Fix compilation of magnifier effect without XRender --- effects/magnifier/magnifier.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/effects/magnifier/magnifier.cpp b/effects/magnifier/magnifier.cpp index 88801cb2ae..710de10b83 100644 --- a/effects/magnifier/magnifier.cpp +++ b/effects/magnifier/magnifier.cpp @@ -30,7 +30,9 @@ along with this program. If not, see . #include #include +#ifdef KWIN_HAVE_XRENDER_COMPOSITING #include +#endif namespace KWin { @@ -174,6 +176,7 @@ void MagnifierEffect::paintScreen(int mask, QRegion region, ScreenPaintData& dat } } if (effects->compositingType() == XRenderCompositing) { +#ifdef KWIN_HAVE_XRENDER_COMPOSITING if (!m_pixmap || m_pixmap->size() != srcArea.size()) { delete m_pixmap; m_pixmap = new QPixmap(srcArea.size()); @@ -207,6 +210,7 @@ void MagnifierEffect::paintScreen(int mask, QRegion region, ScreenPaintData& dat { area.x(), area.y(), FRAME_WIDTH, area.height()-FRAME_WIDTH} }; XRenderColor c = preMultiply(QColor(0,0,0,255)); XRenderFillRectangles(display(), PictOpSrc, effects->xrenderBufferPicture(), &c, rects, 4); +#endif } } }