diff options
author | Ren, Zhaohan <Ren, Zhaohan> | 2010-12-20 10:30:23 +0800 |
---|---|---|
committer | Ren, Zhaohan <Ren, Zhaohan> | 2010-12-20 10:30:23 +0800 |
commit | 1afcc78013863eac29bbbf5940afc00a7aa05261 (patch) | |
tree | 055345f911bc9e2eb6712d883b3baaa5c43b06ca | |
parent | b281a6fa9dbbbaeb2bf2d4f0b924170008a07fdb (diff) | |
download | libva-1afcc78013863eac29bbbf5940afc00a7aa05261.tar.gz |
Create a pixmap with the same size of the destination window, not the
root window.
-rw-r--r-- | test/putsurface/putsurface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/putsurface/putsurface.c b/test/putsurface/putsurface.c index 0de786c..fcea3ad 100644 --- a/test/putsurface/putsurface.c +++ b/test/putsurface/putsurface.c @@ -98,8 +98,8 @@ static Pixmap create_pixmap(int width, int height) XGetWindowAttributes (x11_display, root, &attr); - printf("Create a pixmap from ROOT window %dx%d\n\n", attr.width, attr.height); - pixmap = XCreatePixmap(x11_display, root, attr.width, attr.height, + printf("Create a pixmap from ROOT window %dx%d, pixmap size %dx%d\n\n", attr.width, attr.height, width, height); + pixmap = XCreatePixmap(x11_display, root, width, height, DefaultDepth(x11_display, DefaultScreen(x11_display))); return pixmap; |