Add EPictureCreatePmap() and EPictureDestroy().
SVN revision: 51492
This commit is contained in:
parent
24e722480a
commit
d46cb831a2
16
src/x.c
16
src/x.c
|
@ -1953,19 +1953,19 @@ EWindowGetPixmap(const Win win)
|
|||
#define _G(x) (((x) >> 8) & 0xff)
|
||||
#define _B(x) (((x) ) & 0xff)
|
||||
|
||||
#if 0
|
||||
Picture
|
||||
EPictureCreate(Window win, int depth, Visual * vis)
|
||||
EPictureCreate(Win win, Drawable draw)
|
||||
{
|
||||
Picture pict;
|
||||
XRenderPictFormat *pictfmt;
|
||||
|
||||
pictfmt = XRenderFindVisualFormat(disp, vis);
|
||||
pict = XRenderCreatePicture(disp, win, pictfmt, 0, 0);
|
||||
if (!win)
|
||||
win = VROOT;
|
||||
pictfmt = XRenderFindVisualFormat(disp, WinGetVisual(win));
|
||||
pict = XRenderCreatePicture(disp, draw, pictfmt, 0, 0);
|
||||
|
||||
return pict;
|
||||
}
|
||||
#endif
|
||||
|
||||
Picture
|
||||
EPictureCreateSolid(Window xwin, int argb, unsigned int a, unsigned int rgb)
|
||||
|
@ -2013,6 +2013,12 @@ EPictureCreateBuffer(Win win, int w, int h, Pixmap * ppmap)
|
|||
return pict;
|
||||
}
|
||||
|
||||
void
|
||||
EPictureDestroy(Picture pict)
|
||||
{
|
||||
XRenderFreePicture(disp, pict);
|
||||
}
|
||||
|
||||
void
|
||||
EPictureSetClip(Picture pict, XserverRegion clip)
|
||||
{
|
||||
|
|
|
@ -321,12 +321,12 @@ void ERegionShow(const char *txt, XserverRegion rgn,
|
|||
void (*prf) (const char *fmt, ...));
|
||||
|
||||
#include <X11/extensions/Xrender.h>
|
||||
#if 0
|
||||
Picture EPictureCreate(Window win, int depth, Visual * vis);
|
||||
#endif
|
||||
|
||||
Picture EPictureCreate(Win win, Drawable draw);
|
||||
Picture EPictureCreateSolid(Window xwin, int argb,
|
||||
unsigned int a, unsigned int rgb);
|
||||
Picture EPictureCreateBuffer(Win win, int w, int h, Pixmap * ppmap);
|
||||
void EPictureDestroy(Picture pict);
|
||||
void EPictureSetClip(Picture pict, XserverRegion clip);
|
||||
|
||||
Pixmap EWindowGetPixmap(const Win win);
|
||||
|
|
Loading…
Reference in New Issue