Lines Matching refs:surface
69 // creates a dummy surface that has the same format as the real window's
70 // surface, but is not visible and so can be painted on even if the window
75 wxLogTrace(TRACE_PAINT, _T("%p ('%s'): creating dummy DC surface"),
102 // obtain the surface used for painting:
104 wxIDirectFBSurfacePtr surface;
112 // see below (below "create the surface:") for how is this case handled
126 // parent TLW will flip the entire surface when painting is done
135 // In either case, we need to flip the surface when we're done
138 // out of its parent's area, we must clip the surface accordingly.
144 // create the surface:
150 // measured, so let's create a dummy surface that has the same
152 surface = CreateDummySurface(win, rect);
154 // painting on hidden window has no effect on TLW's surface, don't
155 // waste time flipping the dummy surface:
162 surface = win->GetDfbSurface()->GetSubSurface(&dfbrect);
173 if ( !surface )
183 DFBInit(surface);
192 wxIDirectFBSurfacePtr surface(GetDirectFBSurface());
193 if ( !surface )
196 // if no painting was done on the DC, we don't have to flip the surface:
202 // paint overlays on top of the surface being drawn to by this DC
207 surface->GetCapabilities(&caps);
210 // FIXME: flip only modified parts of the surface
211 surface->FlipToFront();
213 // else: the surface is not double-buffered and so cannot be flipped
215 // else: don't flip the surface, wxTLW will do it when it finishes