summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2015-03-16 18:16:27 +0000
committerLauri Kasanen <cand@gmx.com>2015-03-16 18:16:27 +0000
commit854c5ebd762975753e766793242da01d68347ad7 (patch)
treef9630d9ab32fced2349f9b7f4a2eecccc2a6c207 /src
parentc91e48149beda4538d47e5a3a3c393f7690d2aa4 (diff)
Correct HAVE_XRENDER preprocessor checks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Double_Window.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx
index f85af930b..54423514f 100644
--- a/src/Fl_Double_Window.cxx
+++ b/src/Fl_Double_Window.cxx
@@ -129,7 +129,7 @@ void Fl_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offscreen
#if defined(USE_X11)
-#ifdef HAVE_XRENDER
+#if HAVE_XRENDER
#include <X11/extensions/Xrender.h>
#endif
@@ -139,7 +139,7 @@ void Fl_Xlib_Graphics_Driver::copy_offscreen(int x, int y, int w, int h, Fl_Offs
void Fl_Xlib_Graphics_Driver::copy_offscreen_with_alpha(int x, int y, int w, int h,
Fl_Offscreen pixmap, int srcx, int srcy) {
-#ifdef HAVE_XRENDER
+#if HAVE_XRENDER
XRenderPictureAttributes srcattr;
memset(&srcattr, 0, sizeof(XRenderPictureAttributes));
XRenderPictFormat *srcfmt = XRenderFindStandardFormat(fl_display, PictStandardARGB32);