#endif // wxUSE_DISPLAY
- DECLARE_NO_COPY_CLASS(wxDisplayImplSingle)
+ wxDECLARE_NO_COPY_CLASS(wxDisplayImplSingle);
};
// ----------------------------------------------------------------------------
return Factory().GetFromPoint(pt);
}
-/* static */ int wxDisplay::GetFromWindow(wxWindow *window)
+/* static */ int wxDisplay::GetFromWindow(const wxWindow *window)
{
wxCHECK_MSG( window, wxNOT_FOUND, _T("invalid window") );
return m_impl->ChangeMode(mode);
}
-#endif // wxUSE_DIRECTDRAW
+#endif // wxUSE_DISPLAY
// ----------------------------------------------------------------------------
// static functions implementation
// wxDisplayFactory implementation
// ============================================================================
-int wxDisplayFactory::GetFromWindow(wxWindow *window)
+int wxDisplayFactory::GetFromWindow(const wxWindow *window)
{
// consider that the window belongs to the display containing its centre
const wxRect r(window->GetRect());