X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09a1dffa32ae09ea47789eb071a1fdac0d154dda..44f5b995740b69ba222e92a5f7da87080afe4367:/src/x11/colour.cpp diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index fa4909495c..7431369b7f 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -93,8 +93,8 @@ void wxColourRefData::FreeColour() if (!m_colormap) return; #if !wxUSE_NANOX - if ((wxTheApp->m_visualType == GrayScale) || - (wxTheApp->m_visualType == PseudoColor)) + if ((wxTheApp->m_visualInfo->m_visualType == GrayScale) || + (wxTheApp->m_visualInfo->m_visualType == PseudoColor)) { int idx = m_color.pixel; colMapAllocCounter[ idx ] = colMapAllocCounter[ idx ] - 1; @@ -116,8 +116,8 @@ void wxColourRefData::AllocColour( WXColormap cmap ) FreeColour(); #if !wxUSE_NANOX - if ((wxTheApp->m_visualType == GrayScale) || - (wxTheApp->m_visualType == PseudoColor)) + if ((wxTheApp->m_visualInfo->m_visualType == GrayScale) || + (wxTheApp->m_visualInfo->m_visualType == PseudoColor)) { m_hasPixel = XAllocColor( wxGlobalDisplay(), (Colormap) cmap, &m_color ); int idx = m_color.pixel;