Article View: gnu.epoch.misc
Article #1770Re: Cursor colors and stipples
From: Alan M. Carroll
Date: Sat, 24 Aug 1991 15:33
Date: Sat, 24 Aug 1991 15:33
47 lines
3137 bytes
3137 bytes
In article <1991Aug23.202507.6527@math.ucla.edu>, gwhitney@deimos.math.ucla.edu (Glen Whitney) writes: >The problem is with the function "cursor-color". If I say >Is this fixed in the second patch? I believe so - it works here. If the patch 2 doesn't fix it, let me know. > As a separate issue, the documentation on style stipples seems to me unclear. Sorry about that. Stipples are a complex issue, made more so by the fact that you can have 2 stipples "competing" in the same character space, and we committed to only using X supported stipple operations. What this means is if there is no style for a group of characters, they are drawn using XDrawImageString(). However, if a stipple is present this must be done in two parts, first a XFillRectangle() for the background, and then XDrawString() to put the characters in. The background stipple is used for the first operation, and the text stipple for the second. > a style. Also, it says that for the text stipple, "on bits are displayed in > the text foreground and the off bits are displayed in the text background", > when what seems to happen is that off bits force display in the background > color, whereas on bits are displayed as they would be without the stipple. In > other words, it seems that the text stipple is pixelwise ANDed with the > displayed characters. Is this the intended behavior? Yes. It seems a little strange at first, but it was originally the other way round, and we found that this was even more confusing, because the meaning of bits relative to the text background color changed depending on whether the stipple was used in the background or text slot. In practice it required keeping a stipple and it's inverse around. With this scheme, if you use a stipple for either text or background, off bits are the text background color, i.e. the background color that would have been used without a stipple*. In terms of the ANDing behaviour of a stipple on text, that's what stipples do. What other behaviour did you expect? * If there are no colors set in the style, then the screen background and text background are the same, and this is trivially true. If there's no style, there's no stipple. -- Alan M. Carroll <-- Another casualty of applied metaphysics Epoch Development Team Urbana Il. "I hate shopping with the reality-impaired" - Susan
Technical Details
Message-ID:
<1991Aug24.153337.27415@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!rusmv1!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wupost!m.cs.uiuc.edu!uiucdcs!carrollReferences:
<1991Aug23.202507.6527@math.ucla.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,b6492d37e70a6d3d X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-08-24 13:41:52 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!rusmv1!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wupost!m.cs.uiuc.edu!uiucdcs!carroll From: carroll@cs.uiuc.edu (Alan M. Carroll) Newsgroups: gnu.epoch.misc Subject: Re: Cursor colors and stipples Message-ID: <1991Aug24.153337.27415@m.cs.uiuc.edu> Date: 24 Aug 91 15:33:37 GMT References: <1991Aug23.202507.6527@math.ucla.edu> Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager)) Organization: Technophiles Inc. - Engineers with Attitude Lines: 47 Nntp-Posting-Host: ash.cs.uiuc.edu