Remove check for other wxPaintDCs. It should be done in wxWindow instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-07-09 14:10:53 +00:00
parent e6d822952f
commit 63ad74ab2d

View File

@@ -61,9 +61,7 @@ wxPaintDC::wxPaintDC(void)
wxPaintDC::wxPaintDC( wxWindow *window )
{
wxASSERT_MSG(!sm_focusedDC,"Found another wxDC with focus. Do not use wxPaintDC outside of paint handlers!");
wxASSERT_MSG([NSView focusView]==window->GetNSView(), "PaintDC's NSView does not have focus. Please use wxPaintDC only as the first DC created in a paint handler");
sm_focusedDC=this;
// This transform flips the graphics since wxDC uses top-left origin
if(![window->GetNSView() isFlipped])
{
@@ -86,7 +84,5 @@ wxPaintDC::wxPaintDC( wxWindow *window )
wxPaintDC::~wxPaintDC(void)
{
if(sm_focusedDC==this)
sm_focusedDC=NULL;
};