summaryrefslogtreecommitdiffstats
path: root/progs/xdemos/glxheads.c
diff options
context:
space:
mode:
authorJon TURNEY <[email protected]>2009-06-21 11:58:25 +0100
committerBrian Paul <[email protected]>2009-06-30 13:58:21 -0600
commit57955451f80c64f70e369508705ae95a515d18d8 (patch)
treefd52b8c28f3fbf46cd1122d859eeac4ec1fd9b08 /progs/xdemos/glxheads.c
parente5cb11addad31f698dc8261e7f96d5e3af4a85d6 (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/glxheads.c')
-rw-r--r--progs/xdemos/glxheads.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/progs/xdemos/glxheads.c b/progs/xdemos/glxheads.c
index b3290e90d51..b1a63d3d50c 100644
--- a/progs/xdemos/glxheads.c
+++ b/progs/xdemos/glxheads.c
@@ -267,7 +267,8 @@ main(int argc, char *argv[])
printf(" glxheads xdisplayname ...\n");
printf("Example:\n");
printf(" glxheads :0 mars:0 venus:1\n");
- h = AddHead(":0");
+
+ h = AddHead(XDisplayName(NULL));
if (h)
PrintInfo(h);
}