diff options
author | Jon TURNEY <[email protected]> | 2009-06-21 11:58:25 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-30 13:58:21 -0600 |
commit | 57955451f80c64f70e369508705ae95a515d18d8 (patch) | |
tree | fd52b8c28f3fbf46cd1122d859eeac4ec1fd9b08 /progs/xdemos/glthreads.c | |
parent | e5cb11addad31f698dc8261e7f96d5e3af4a85d6 (diff) |
xdemos: Fix xdemos which default to using display :0.0 to default to $DISPLAY
Fix xdemos which default to using display :0.0 to default to $DISPLAY,
this is kind of irritating when testing on a display other than :0.0
Signed-off-by: Jon TURNEY <[email protected]>
Diffstat (limited to 'progs/xdemos/glthreads.c')
-rw-r--r-- | progs/xdemos/glthreads.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/xdemos/glthreads.c b/progs/xdemos/glthreads.c index b90e6b4f319..ea5474870bd 100644 --- a/progs/xdemos/glthreads.c +++ b/progs/xdemos/glthreads.c @@ -26,7 +26,7 @@ * -p Open a display connection for each thread * -l Enable application-side locking * -n <num threads> Number of threads to create (default is 2) - * -display <display name> Specify X display (default is :0.0) + * -display <display name> Specify X display (default is $DISPLAY) * -t Use texture mapping * * Brian Paul 20 July 2000 @@ -573,7 +573,7 @@ usage(void) int main(int argc, char *argv[]) { - char *displayName = ":0.0"; + char *displayName = NULL; int numThreads = 2; Display *dpy = NULL; int i; |