gdk_draw_gray_image and clipping



Hello,

I wrote a gtk-widget similar to gtkimage and I get up to 5 expose
events if I resize the widget. So I thought about speeding up the
drawing by setting a clipping-rectangle befor calling
'gdk_draw_gray_image' (I used to redraw the hole image). To my
surprise this does slow down the redrawing of the image.

Is this some wiered effect or is generaly unwise to set a
clipping-rectangle and it's faster to redraw the whole image?

        MfG
        bmg

-- 
"Des is völlig wurscht, was heut beschlos- | M G Berberich
 sen wird: I bin sowieso dagegn!"          | berberic fmi uni-passau de
(SPD-Stadtrat Kurt Schindler; Regensburg)  | www.fmi.uni-passau.de/~berberic

Attachment: pgpNJ0j7kOSSQ.pgp
Description: PGP signature



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