#include "wx/image.h"
#include "wx/icon.h"
+#ifdef __VMS
+#pragma message disable nosimpint
+#endif
#include <X11/Xlib.h>
#include <X11/Xatom.h>
+#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 );
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;
(Window)window,
net_wm_icon );
}
+#endif
}
#endif