+wxXVisualInfo* wxApp::GetVisualInfo( WXDisplay* display )
+{
+ wxXVisualInfoMap::iterator it = m_visualInfoMap->find( display );
+
+ if( it != m_visualInfoMap->end() ) return it->second;
+
+ wxXVisualInfo* vi = new wxXVisualInfo;
+ wxFillXVisualInfo( vi, (Display*)display );
+
+ (*m_visualInfoMap)[display] = vi;
+
+ return vi;
+}
+