X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d062e17fca1a1fc0b82b269da4a7ad271075ba2b..6a44bffd1ac68163e4c1cfe8aa8fe4f7f98a02e7:/src/mac/icon.cpp?ds=inline diff --git a/src/mac/icon.cpp b/src/mac/icon.cpp index 0133e45534..2ae29d1859 100644 --- a/src/mac/icon.cpp +++ b/src/mac/icon.cpp @@ -19,6 +19,9 @@ IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap) #endif +#include "wx/mac/private.h" + + /* * Icons */ @@ -43,18 +46,18 @@ wxIcon::wxIcon( char **bits ) : { } -wxIcon::wxIcon(const wxString& icon_file, long flags, +wxIcon::wxIcon(const wxString& icon_file, int flags, int desiredWidth, int desiredHeight) { - LoadFile(icon_file, flags, desiredWidth, desiredHeight); + LoadFile(icon_file, (wxBitmapType) flags, desiredWidth, desiredHeight); } wxIcon::~wxIcon() { } -bool wxIcon::LoadFile(const wxString& filename, long type, +bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type, int desiredWidth, int desiredHeight) { UnRef();