Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!LIGHTNING.MCRCIM.MCGILL.EDU!mouse From: mouse@LIGHTNING.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: a couple o' questions Message-ID: <9012190128.AA24722@lightning.McRCIM.McGill.EDU> Date: 19 Dec 90 01:28:16 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 45 >> gc = XCreateGC(XtDisplay(w),XtWindow(w),None,NULL); /* defaults */ > This uses the Default GC settings which are unpredictable. Not at all - only the font is in any sense unpredictable, unless the implementation is seriously buggy. From the Xlib document: The default GC values are: _________________________________________________________________________________ Component Default _________________________________________________________________________________ function GXcopy plane_mask All ones foreground 0 background 1 line_width 0 line_style LineSolid cap_style CapButt join_style JoinMiter fill_style FillSolid fill_rule EvenOddRule arc_mode ArcPieSlice tile Pixmap of unspecified size filled with foreground pixel (that is, client specified pixel if any, else 0) (subsequent changes to foreground do not affect this pixmap) stipple Pixmap of unspecified size filled with ones ts_x_origin 0 ts_y_origin 0 font subwindow_mode ClipByChildren graphics_exposures True clip_x_origin 0 clip_y_origin 0 clip_mask None dash_offset 0 dashes 4 (that is, the list [4, 4]) _________________________________________________________________________________ Note that foreground and background are not set to any values likely to be useful in a window. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu