From 5829791ffaca0178fbbd4111fbdf8c7cbd6de27f Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 18 Apr 2009 14:31:35 +0200 Subject: fix makefiles etc for subdirs --- examples/ex4.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/ex4.c') 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 -/* Yes, TCC can use X11 too ! */ #include #include +/* 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); -- cgit v1.3.1