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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user