CVSROOT:        /cvs/directfb
Module name:    gdk-directfb
Changes by:     neo     20020113 16:35:13

Modified files:
        .              : gdkevents-directfb.c gdkgeometry-directfb.c 
                         gdkprivate-directfb.h gdkwindow-directfb.c 

Log message:
Changed the concept of how we solve the problem that we need to
clear the window background to its background color. X does this
automatically before sending expose events but DirectFB doesn't
know such a thing as an expose event.

We used to do this similar to what the LinuxFB backend does by
using our own implementation of gdk_window_invalidate_region that
also clears the invalidated region. The problem is that our
implementation is only called from inside the DirectFB backend
and thus we missed a few situations where we needed to clear.
I have tagged this state BEFORE_INVALIDATE_CLEAR_REMOVAL.

The new concept is to clear the background in begin_paint_region().
Since GTK+ surrounds all exposes with calls to begin_paint_region
and end_paint_region this works pretty good and solves almost all
the redraw problems we've had. It also makes our backend cleaner
and smaller.
----------------------------------------------------------------------
----------------------------------------------------------------------



-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-cvs" as subject.

Reply via email to