From 2497c1392b81e093f4de2541a98746aebd449a7f Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 26 Sep 2012 15:04:18 +0200 Subject: Initial commit --- xlistpixmapformats.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 xlistpixmapformats.c (limited to 'xlistpixmapformats.c') diff --git a/xlistpixmapformats.c b/xlistpixmapformats.c new file mode 100644 index 0000000..93a9a20 --- /dev/null +++ b/xlistpixmapformats.c @@ -0,0 +1,18 @@ +#include +#include + +int main(int argc, char **argv) { + Display *dpy = XOpenDisplay(NULL); + int total = 0; + XPixmapFormatValues *fs = XListPixmapFormats(dpy, &total); + if (total) { + int i; + for (i=0; i