nanogui: X11 drivers for Microwindows
Subject:
Re: X11 drivers for Microwindows
From:
Morten Rolland ####@####.####
Date:
30 Nov 1999 09:50:45 -0000
Message-Id: <3843AA5A.FCAA1547@screenmedia.no>
Greg Haerr wrote:
> Tony,
> I have integrated the X11 drivers into the Microwindows
> codebase, and have found them very useful. Thanks.
The same goes for me/us at Screen Media, thanks a lot!
We found one strange little bit of code in scr_x11.c that we
had to change, the patch is:
Index: scr_x11.c
===================================================================
RCS file: /sw/CVSROOT/freepad/mwin/src/drivers/scr_x11.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- scr_x11.c 1999/11/24 14:34:59 1.1
+++ scr_x11.c 1999/11/30 08:08:51 1.2
@@ -301,12 +301,9 @@
char* name;
int i;
- if ((name = (char*) getenv("DISPLAY")) == NULL)
+ name = getenv("DISPLAY");
+ if ( name == 0 )
name = ":0";
- else if ((name = strchr(name, '=')) == NULL)
- name = ":0";
- else
- name++;
if ((x11_dpy = XOpenDisplay(name)) == NULL)
return -1;
My mailer probably garbles this patch, but it should be simple
enough to read. It removes the search for '=' as 'getenv'
should have done that itself.
I'm looking forward to 0.87!
Regards,
Morten Rolland