aboutsummaryrefslogtreecommitdiff
path: root/examples/ex4.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ex4.c')
-rwxr-xr-xexamples/ex4.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/ex4.c b/examples/ex4.c
index 3a3fed7..b33b033 100755
--- a/examples/ex4.c
+++ b/examples/ex4.c
@@ -1,9 +1,10 @@
#!./tcc -run -L/usr/X11R6/lib -lX11
#include <stdlib.h>
-/* Yes, TCC can use X11 too ! */
#include <stdio.h>
#include <X11/Xlib.h>
+/* Yes, TCC can use X11 too ! */
+
int main(int argc, char **argv)
{
Display *display;
@@ -16,8 +17,8 @@ int main(int argc, char **argv)
}
printf("X11 display opened.\n");
screen = XScreenOfDisplay(display, 0);
- printf("width = %d\nheight = %d\ndepth = %d\n",
- screen->width,
+ printf("width = %d\nheight = %d\ndepth = %d\n",
+ screen->width,
screen->height,
screen->root_depth);
XCloseDisplay(display);