// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "icon.h"
#endif
}
//else: 0 is default
- LoadFile(fullname);
+ LoadFile(fullname, wxBITMAP_TYPE_ICO);
}
wxIcon::~wxIcon()
if ( !handler )
{
// say something?
- return FALSE;
+ return false;
}
return handler->Load(this, filename, type, desiredWidth, desiredHeight);