Re: Scale Gtk::Image



On Fri, 2009-06-26 at 21:50 +0200, Daniel Elstner wrote:
> So, yes, Murray's approach is fine in that regard. The code also
> avoids
> rescaling the image if the widget size hasn't changed, so there is no
> performance difference either.
> 
> I called it "bold" purely on my gut feeling that changing the logical
> state of a widget while it is being drawn is asking for trouble.  The
> expose event handler is supposed to draw a representation of the
> current
> logical widget content, and not change the content.

Maybe that optimization was to prevent an infinite loop. I forget. But
I'll fix it to work as you suggest.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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