From 0eaa71e03318e977301cd194670a72a45b32e6ad Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Tue, 17 Mar 2015 09:00:50 +0000 Subject: Mark the picture formats static, they don't change git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Double_Window.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 54423514f..6f823d41e 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -142,8 +142,8 @@ void Fl_Xlib_Graphics_Driver::copy_offscreen_with_alpha(int x, int y, int w, int #if HAVE_XRENDER XRenderPictureAttributes srcattr; memset(&srcattr, 0, sizeof(XRenderPictureAttributes)); - XRenderPictFormat *srcfmt = XRenderFindStandardFormat(fl_display, PictStandardARGB32); - XRenderPictFormat *dstfmt = XRenderFindStandardFormat(fl_display, PictStandardRGB24); + static XRenderPictFormat *srcfmt = XRenderFindStandardFormat(fl_display, PictStandardARGB32); + static XRenderPictFormat *dstfmt = XRenderFindStandardFormat(fl_display, PictStandardRGB24); Picture src = XRenderCreatePicture(fl_display, pixmap, srcfmt, 0, &srcattr); Picture dst = XRenderCreatePicture(fl_display, fl_window, dstfmt, 0, &srcattr); -- cgit v1.2.3