Lines Matching refs:wxGCPool
109 static wxGC wxGCPool[GC_POOL_SIZE];
113 memset( wxGCPool, 0, GC_POOL_SIZE*sizeof(wxGC) );
120 if (wxGCPool[i].m_gc)
121 XFreeGC( wxGlobalDisplay(), wxGCPool[i].m_gc );
129 if (!wxGCPool[i].m_gc)
131 wxGCPool[i].m_gc = XCreateGC( wxGlobalDisplay(), window, 0, NULL );
132 XSetGraphicsExposures( wxGlobalDisplay(), wxGCPool[i].m_gc, FALSE );
133 wxGCPool[i].m_type = type;
134 wxGCPool[i].m_used = false;
136 if ((!wxGCPool[i].m_used) && (wxGCPool[i].m_type == type))
138 wxGCPool[i].m_used = true;
139 return wxGCPool[i].m_gc;
152 if (wxGCPool[i].m_gc == gc)
154 wxGCPool[i].m_used = false;