24 #define SWELL_GDI_DEBUG
49 if (m_ctxpool_debug->
GetSize() > 8192)
51 p = m_ctxpool_debug->
Get(0);
52 m_ctxpool_debug->
Delete(0);
53 memset(
p,0,
sizeof(*
p));
64 memset(
p,0,
sizeof(*
p));
82 memset(
p,0,
sizeof(*
p));
88 m_ctxpool_debug->
Add(
p);
111#ifdef SWELL_GDI_DEBUG
114 if (m_objpool_debug->
GetSize()>8192)
116 p = m_objpool_debug->
Get(0);
117 m_objpool_debug->
Delete(0);
118 memset(
p,0,
sizeof(*
p));
129 memset(
p,0,
sizeof(*
p));
156 memset(
p,0,
sizeof(*
p));
157#ifdef SWELL_GDI_DEBUG
159 p->_infreelist =
true;
161 m_objpool_debug->
Add(
p);
167 p->_infreelist =
true;
187#if !defined(SWELL_GDI_DEBUG) && defined(SWELL_CLEANUP_ON_UNLOAD)
189class _swellGdiUnloader
192 _swellGdiUnloader() { }
221_swellGdiUnloader __swell__swellGdiUnloader;
PTRTYPE * Add(PTRTYPE *item)
Definition ptrlist.h:82
PTRTYPE * Get(INT_PTR index) const
Definition ptrlist.h:51
void Delete(int index)
Definition ptrlist.h:126
int GetSize(void) const
Definition ptrlist.h:58
struct huft * t
Definition inflate.c:943
Definition swell-internal.h:908
bool _infreelist
Definition swell-internal.h:930
Definition swell-internal.h:893
static HDC__ * m_ctxpool
Definition swell-gdi-internalpool.h:33
static int m_objpool_size
Definition swell-gdi-internalpool.h:36
static void SWELL_GDP_CTX_DELETE(HDC__ *p)
Definition swell-gdi-internalpool.h:76
static HGDIOBJ__ * GDP_OBJECT_NEW()
Definition swell-gdi-internalpool.h:107
static HGDIOBJ__ * m_objpool
Definition swell-gdi-internalpool.h:35
static int m_ctxpool_size
Definition swell-gdi-internalpool.h:34
static bool HDC_VALID(HDC__ *ct)
Definition swell-gdi-internalpool.h:181
HDC__ * SWELL_GDP_CTX_NEW()
Definition swell-gdi-internalpool.h:41
static void GDP_OBJECT_DELETE(HGDIOBJ__ *p)
Definition swell-gdi-internalpool.h:151
static bool HGDIOBJ_VALID(HGDIOBJ__ *p, int reqType=0)
Definition swell-gdi-internalpool.h:142
static WDL_Mutex * m_ctxpool_mutex
Definition swell-gdi-internalpool.h:27
#define TYPE_BITMAP
Definition swell-internal.h:984
#define TYPE_BRUSH
Definition swell-internal.h:982
#define TYPE_FONT
Definition swell-internal.h:983
#define TYPE_PEN
Definition swell-internal.h:981
uch * p
Definition crypt.c:594
#define WDL_NOT_NORMALLY(x)
Definition wdltypes.h:166
#define WDL_NORMALLY(x)
Definition wdltypes.h:165