X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f618020a15f1647a83aaeab1fe315f90497a9876..2d956b58023a4955313a1c1531bc70a0deb0b831:/src/unix/utilsx11.cpp?ds=inline diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 44dcaeebe7..073a4eb0d4 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -16,17 +16,25 @@ #include "wx/image.h" #include "wx/icon.h" +#ifdef __VMS +#pragma message disable nosimpint +#endif #include #include +#ifdef __VMS +#pragma message enable nosimpint +#endif void wxSetIconsX11( WXDisplay* display, WXWindow window, const wxIconBundle& ib ) { +#if !wxUSE_NANOX size_t size = 0; size_t i, max = ib.m_icons.GetCount(); for( i = 0; i < max; ++i ) - size += 2 + ib.m_icons[i].GetWidth() * ib.m_icons[i].GetHeight(); + if( ib.m_icons[i].Ok() ) + size += 2 + ib.m_icons[i].GetWidth() * ib.m_icons[i].GetHeight(); Atom net_wm_icon = XInternAtom( (Display*)display, "_NET_WM_ICON", 0 ); @@ -51,6 +59,12 @@ void wxSetIconsX11( WXDisplay* display, WXWindow window, gMask = image.GetMaskGreen(); bMask = image.GetMaskBlue(); } + else // no mask, but still init the variables to avoid warnings + { + rMask = + gMask = + bMask = 0; + } *ptr++ = width; *ptr++ = height; @@ -84,6 +98,7 @@ void wxSetIconsX11( WXDisplay* display, WXWindow window, (Window)window, net_wm_icon ); } +#endif } #endif