diff options
author | marha <marha@users.sourceforge.net> | 2012-03-23 10:05:55 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-03-23 10:05:55 +0100 |
commit | 0f834b91a4768673833ab4917e87d86c237bb1a6 (patch) | |
tree | 363489504ed4b2d360259b8de4c9e392918e5d02 /xorg-server/hw/dmx/examples/evi.c | |
parent | fc72edebf875378459368c5383d9023730cbca54 (diff) | |
download | vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.gz vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.bz2 vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.zip |
libX11 xserver fontconfig mesa pixman xkbcomp xkeyboard-config git update
23 Mar 2012
Diffstat (limited to 'xorg-server/hw/dmx/examples/evi.c')
-rw-r--r-- | xorg-server/hw/dmx/examples/evi.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/xorg-server/hw/dmx/examples/evi.c b/xorg-server/hw/dmx/examples/evi.c index 644ea8f51..64dfb7eaa 100644 --- a/xorg-server/hw/dmx/examples/evi.c +++ b/xorg-server/hw/dmx/examples/evi.c @@ -36,20 +36,22 @@ #include <X11/Xlib.h> #include <X11/extensions/XEVI.h> -int main(int argc, char **argv) +int +main(int argc, char **argv) { - Display *display = NULL; - int major_version, minor_version; - ExtendedVisualInfo *evi; - int count; - int i; + Display *display = NULL; + int major_version, minor_version; + ExtendedVisualInfo *evi; + int count; + int i; if (argc == 2) { if (!(display = XOpenDisplay(argv[1]))) { printf("Cannot open display %s\n", argv[1]); return -1; } - } else { + } + else { printf("Usage: %s display\n", argv[0]); return -1; } @@ -71,14 +73,13 @@ int main(int argc, char **argv) printf("%02d vid=0x%02lx screen=%d level=%d type=%u value=%u" " min=%u max=%u conflicts=%u\n", i, - (long unsigned)evi[i].core_visual_id, + (long unsigned) evi[i].core_visual_id, evi[i].screen, evi[i].level, evi[i].transparency_type, evi[i].transparency_value, evi[i].min_hw_colormaps, - evi[i].max_hw_colormaps, - evi[i].num_colormap_conflicts); + evi[i].max_hw_colormaps, evi[i].num_colormap_conflicts); } XCloseDisplay(display); |