+ // paint overlays on top of the surface being drawn to by this DC
+ // before showing anything on the screen:
+ GetWindow()->PaintOverlays(m_winRect);
+
+ DFBSurfaceCapabilities caps = DSCAPS_NONE;
+ surface->GetCapabilities(&caps);
+ if ( caps & DSCAPS_DOUBLE )
+ {
+ // FIXME: flip only modified parts of the surface
+ surface->FlipToFront();
+ }
+ // else: the surface is not double-buffered and so cannot be flipped