Maybe the effect is intentional but I will just describe the problem as
I understand it.
If you want to draw a button with a border you want to get something
like this:

ttttttt
ltttttr
llcccrr
llcccrr
llcccrr
lbbbbbr
bbbbbbb

This is done in Painter.C by first drawing the whole area in the
background color (c), then painting two rectangles on the top and the
bottom over the background rectangle and finally superimposing this with
two trapezoids left and right. The step with the two rectangles is just
fine as it is and results in

ttttttt
ttttttt
ccccccc
ccccccc
ccccccc
bbbbbbb
bbbbbbb

The coordinates for the trapezoids however are calculated in the wrong
way. You will get something like this (vertices are marked as .):

.tttttt.
ttttttt
cc.cc.c
ccccccc
ccccccc
bb.bb.b.
bbbbbbb
.

Notice that there are actually two errors combined ;-). Hope this helps.



On Wed, Jan 25, 2006 at 02:48:27PM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Martin" == Martin Hinsch <[EMAIL PROTECTED]> writes:
> 
> Martin> Hi This tiny patch fixes the drawing of the in-text buttons
> Martin> (for Notes, citations etc.) in Painter.C.
> 
> Could you describe what is wrong without the patch?
> 
> JMarc
> 

-- 
Martin Hinsch

[EMAIL PROTECTED]
+31 50 363 8097

CEES Centre for Ecological and Evolutionary Studies
Biologisch Centrum
Kerklaan 30
Postbus 14
9750 AA Haren

Reply via email to