move misc surface helpers to wxIDirectFBSurface class

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-09-11 09:08:57 +00:00
parent 914f515762
commit a5b31f4e11
11 changed files with 115 additions and 138 deletions

View File

@@ -65,7 +65,7 @@ void wxWindowDC::InitForWin(wxWindow *win, const wxRect *rect)
// so let's create a dummy surface that has the same format as the real
// one would have and let the code paint on it:
wxSize size(rect ? rect->GetSize() : win->GetSize());
surface = wxDfbCreateCompatibleSurface(win->GetDfbSurface(), size);
surface = win->GetDfbSurface()->CreateCompatible(size);
}
else if ( !rect )
{