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
This commit is contained in:
Lauri Kasanen 2015-03-17 09:00:50 +00:00
parent 966e553eba
commit 0eaa71e033
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ void Fl_Xlib_Graphics_Driver::copy_offscreen_with_alpha(int x, int y, int w, int
#if HAVE_XRENDER #if HAVE_XRENDER
XRenderPictureAttributes srcattr; XRenderPictureAttributes srcattr;
memset(&srcattr, 0, sizeof(XRenderPictureAttributes)); memset(&srcattr, 0, sizeof(XRenderPictureAttributes));
XRenderPictFormat *srcfmt = XRenderFindStandardFormat(fl_display, PictStandardARGB32); static XRenderPictFormat *srcfmt = XRenderFindStandardFormat(fl_display, PictStandardARGB32);
XRenderPictFormat *dstfmt = XRenderFindStandardFormat(fl_display, PictStandardRGB24); static XRenderPictFormat *dstfmt = XRenderFindStandardFormat(fl_display, PictStandardRGB24);
Picture src = XRenderCreatePicture(fl_display, pixmap, srcfmt, 0, &srcattr); Picture src = XRenderCreatePicture(fl_display, pixmap, srcfmt, 0, &srcattr);
Picture dst = XRenderCreatePicture(fl_display, fl_window, dstfmt, 0, &srcattr); Picture dst = XRenderCreatePicture(fl_display, fl_window, dstfmt, 0, &srcattr);