Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!clyde!bellcore!faline!dana From: dana@faline.bellcore.com (Dana A. Chee) Newsgroups: comp.windows.x Subject: Re: paint in V11 Message-ID: <714@faline.bellcore.com> Date: Mon, 27-Jul-87 08:29:19 EDT Article-I.D.: faline.714 Posted: Mon Jul 27 08:29:19 1987 Date-Received: Wed, 29-Jul-87 03:55:16 EDT Reply-To: dana@faline.UUCP (Dana A. Chee) Organization: Bellcore MRE Lines: 33 In article <> jkh@violet.berkeley.edu (Jordan K. Hubbard) writes: >Has anyone ever gotten this to work? On the VAX and the Sun, there seems to >be a call to XDrawImageString() with bogus contents. On the Sun, it crashes >here, on the Vax it gets to XFlushGCCache() before croaking.. > > Jordan Yes, the magical incantation is to change XDrawImageString(window, gc, 0, 0, str, strlen(str)); to XDrawImageString(dpy, window, gc, 0, 0, str, strlen(str)); and to change c = GetCharFromCode(code); to char buf[9]; code = XLookupString(event, buf, 10, NULL, NULL); if( code == 1 ) c = buf[0]; else c = NULL; Good luck; Dana Chee Room 2Q-250 445 South Street Morristown, NJ 07960-1961 (201) 829-4488 {allegra | decvax}!bellcore!faline!dana dana@thumper.bellcore.com