Re: Bevels, sigh



On 30 Jan 1998, Russell Nelson wrote:

> Shawn T. Amundson writes:
>  > On 30 Jan 1998, Russell Nelson wrote:
>  > 
>  > > I don't think we should make the theme code more complicated by having
>  > > special bevel-drawing code.  Much better to make themes be efficient,
>  > > so that standard buttons could be specified with a nine-pixel pixmap
>  > > with a border of one.
>  > > 
>  > 
>  > Even if the buttons can be specified in a nine-pixel pixmap, when
>  > the pixmap is enlarged it is no longer as efficient (memory wise) as 
>  > just using drawing routines.
> 
> Why enlarge the pixmap, then draw the pixmap?  Why not draw FROM the
> pixmap?  It's not too tough to notice that the pixmap only has 3x3
> pixels, that the border is 1, and then draw it as four lines, four
> pixels, and one filled rectangle.

Seems reasonable...

--
Shawn T. Amundson		Complete Internet Solutions
Senior Systems Administrator	Minneapolis, Minnesota, USA
amundson@CompleteIS.com		http://www.CompleteIS.com/~amundson

while (i) { last }
    i, do exist.
    forever;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]