aboutsummaryrefslogtreecommitdiff
path: root/modules/image_io
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-05-31 14:19:00 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-05-31 14:19:00 +0000
commit0dc9cdbf9bace179e75ffc2cc874ab5b1c5f2cc8 (patch)
treec3f696299c5f5543bed92df0db7eb8bd5b86ba74 /modules/image_io
parent1b4c18faa20cfbb06ad9a70c2f92bea054bd6755 (diff)
on __APPLE__, open X11.app if creating the window fails the first time
svn path=/trunk/externals/pdp/; revision=7729
Diffstat (limited to 'modules/image_io')
-rw-r--r--modules/image_io/pdp_glx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/image_io/pdp_glx.c b/modules/image_io/pdp_glx.c
index d454de9..81ec2d9 100644
--- a/modules/image_io/pdp_glx.c
+++ b/modules/image_io/pdp_glx.c
@@ -247,6 +247,9 @@ static int pdp_glx_try_autocreate(t_pdp_glx *x)
post("pdp_glx: autocreate window");
pdp_glx_create(x);
if (!(x->x_initialized)){
+#ifdef __APPLE__
+ system("/usr/bin/open /Applications/Utilities/X11.app &");
+#endif
x->x_autocreate--;
if (!x->x_autocreate){
post ("pdp_glx: autocreate failed %d times: disabled", PDP_OGL_AUTOCREATE_RETRY);