mirror of https://github.com/fltk/fltk
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:
parent
966e553eba
commit
0eaa71e033
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue