// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "gdiobj.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
-wxGDIObject::wxGDIObject()
-{
- m_visible = FALSE;
-}
-
/*
void wxGDIObject::IncrementResourceUsage(void)
{
- if ( !M_GDIDATA )
- return;
+ if ( !M_GDIDATA )
+ return;
// wxDebugMsg("Object %ld about to be incremented: %d\n", (long)this, m_usageCount);
M_GDIDATA->m_usageCount ++;
void wxGDIObject::DecrementResourceUsage(void)
{
- if ( !M_GDIDATA )
- return;
+ if ( !M_GDIDATA )
+ return;
M_GDIDATA->m_usageCount --;
if (wxTheApp)
- wxTheApp->SetPendingCleanup(TRUE);
+ wxTheApp->SetPendingCleanup(true);
// wxDebugMsg("Object %ld decremented: %d\n", (long)this, M_GDIDATA->m_usageCount);
if (M_GDIDATA->m_usageCount < 0)
{