X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/329e276aa0f06aef6e1dcde5c197088f4695d449..576a15443df5f9d643a8504f9605eca4c53d19de:/src/motif/icon.cpp?ds=sidebyside diff --git a/src/motif/icon.cpp b/src/motif/icon.cpp index a31a6f0646..56c10def1c 100644 --- a/src/motif/icon.cpp +++ b/src/motif/icon.cpp @@ -54,11 +54,11 @@ wxIcon::wxIcon(const char **data) (void) Create((void*) data, wxBITMAP_TYPE_XPM_DATA, 0, 0, 0); } -wxIcon::wxIcon(const wxString& icon_file, long flags, +wxIcon::wxIcon(const wxString& icon_file, wxBitmapType type, int desiredWidth, int desiredHeight) { - LoadFile(icon_file, flags, desiredWidth, desiredHeight); + LoadFile(icon_file, type, desiredWidth, desiredHeight); } void wxIcon::CopyFromBitmap(const wxBitmap& bmp) @@ -71,7 +71,7 @@ wxIcon::~wxIcon() { } -bool wxIcon::LoadFile(const wxString& filename, long type, +bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type, int desiredWidth, int desiredHeight) { UnRef(); @@ -81,7 +81,8 @@ bool wxIcon::LoadFile(const wxString& filename, long type, wxBitmapHandler *handler = FindHandler(type); if ( handler ) - return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight); + return handler->LoadFile(this, filename, type, + desiredWidth, desiredHeight); else return FALSE; }