From 7f6ca4f00f74d7c5fe4942c897a3836b0c67bf69 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 16 Aug 2011 01:10:37 +0000 Subject: Fix FTBFS when composite extension is not available git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1247458 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdefx/kstyle.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'kdefx') diff --git a/kdefx/kstyle.cpp b/kdefx/kstyle.cpp index 3f3f36b71..f80094fe4 100644 --- a/kdefx/kstyle.cpp +++ b/kdefx/kstyle.cpp @@ -144,9 +144,7 @@ class TransparencyHandler : public TQObject #ifdef HAVE_XRENDER void XRenderBlendToPixmap(const TQWidget* p); #endif -#ifdef HAVE_XCOMPOSITE - bool haveX11RGBASupport(); -#endif + bool haveX11RGBASupport(); TQImage handleRealAlpha(TQImage); void createShadowWindows(const TQWidget* p); void removeShadowWindows(const TQWidget* p); @@ -1963,7 +1961,7 @@ TransparencyHandler::~TransparencyHandler() bool TransparencyHandler::haveX11RGBASupport() { - // Simple way + // Simple way to determine if we have ARGB support if (TQPaintDevice::x11AppDepth() == 32) { return true; } -- cgit v1.2.1