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/dmxresize.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/dmxresize.c')
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxresize.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/xorg-server/hw/dmx/examples/dmxresize.c b/xorg-server/hw/dmx/examples/dmxresize.c index caed91d8d..fed3bd08a 100644 --- a/xorg-server/hw/dmx/examples/dmxresize.c +++ b/xorg-server/hw/dmx/examples/dmxresize.c @@ -36,15 +36,16 @@ #include <X11/Xlib.h> #include <X11/extensions/dmxext.h> -int main(int argc, char **argv) +int +main(int argc, char **argv) { - Display *display = NULL; - int event_base; - int error_base; - int major_version, minor_version, patch_version; - int width, height, shiftX, shiftY, status; + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + int width, height, shiftX, shiftY, status; DMXDesktopAttributes attr; - unsigned int mask; + unsigned int mask; if (argc != 6) { printf("Usage: %s display width height shiftX shiftY\n", argv[0]); @@ -56,7 +57,7 @@ int main(int argc, char **argv) return -1; } - width = strtol(argv[2], NULL, 0); + width = strtol(argv[2], NULL, 0); height = strtol(argv[3], NULL, 0); shiftX = strtol(argv[4], NULL, 0); shiftY = strtol(argv[5], NULL, 0); @@ -76,11 +77,9 @@ int main(int argc, char **argv) printf("Extension version: %d.%d patch %d\n", major_version, minor_version, patch_version); - mask = (DMXDesktopWidth | - DMXDesktopHeight | - DMXDesktopShiftX | - DMXDesktopShiftY); - attr.width = width; + mask = (DMXDesktopWidth | + DMXDesktopHeight | DMXDesktopShiftX | DMXDesktopShiftY); + attr.width = width; attr.height = height; attr.shiftX = shiftX; attr.shiftY = shiftY; @@ -98,7 +97,7 @@ int main(int argc, char **argv) printf("status = %d (UNKNOWN ERROR *****)\n", status); break; } - + XCloseDisplay(display); return 0; } |