lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Custom wxArtProvider affects html help toolbar buttons


From: Vaclav Slavik
Subject: Re: [lmi] Custom wxArtProvider affects html help toolbar buttons
Date: Wed, 18 Mar 2009 08:33:11 +0100

On Tue, 2009-03-17 at 18:55 +0000, Greg Chicares wrote:
> and so my question is whether the 'wxDefaultSize != size' case matters.

In practice, it almost certainly doesn't -- nobody is likely to call it
in such way in the current version of wxWidgets code.

In theory, it does matter: requested size is a part of
wxArtProvider::CreateBitmap() API and any implementation should respect
it. OTOH, there's fallback code in wxArtProvider that ensures that if
CreateBitmap() returns bitmap of incorrect size, it is rescaled to the
requested one (at some lost of quality).

In other words, requested size should be respected (irrespective of wx
version), but the only penalty for not doing so is a small loss of
quality in some very rare situations that probably don't occur in LMI in
the first place.

> (Where would a nondefault size come from, if not from GetSizeHint()?)

>From a wxArtProvider caller that does something unusual and needs a
bitmap of specific size. The only real-life examples of such situation
that I can think of right now are (a) $(wx)/samples/artprov and (b)
Poedit's attention bar (similar to
http://webct.ipfw.edu/troubleshooting/images/ie-information-bar.gif, but
with standard "warning" icon - i.e. downscaled version of
wxART_WARNING). Neither of these is relevant to LMI, of course.

Vaclav





reply via email to

[Prev in Thread] Current Thread [Next in Thread]