X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a7d70fe8922a56407a5b02b95a53fb16e787f70..a7868cdf6a8782a04a46791dd63de2ade825a8bc:/src/mac/carbon/icon.cpp diff --git a/src/mac/carbon/icon.cpp b/src/mac/carbon/icon.cpp index 3473bf72ba..7084b59cfc 100644 --- a/src/mac/carbon/icon.cpp +++ b/src/mac/carbon/icon.cpp @@ -1,18 +1,22 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: icon.cpp +// Name: src/mac/carbon/icon.cpp // Purpose: wxIcon class // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" #include "wx/icon.h" -#include "wx/image.h" + +#ifndef WX_PRECOMP + #include "wx/image.h" +#endif + #include "wx/mac/private.h" IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap) @@ -91,7 +95,7 @@ void wxIcon::SetHeight( int height ) { } -bool wxIcon::Ok() const +bool wxIcon::IsOk() const { return m_refData != NULL ; } @@ -180,7 +184,7 @@ bool wxIcon::LoadFile( desiredHeight = loadimage.GetHeight() ; if ( desiredWidth != loadimage.GetWidth() || desiredHeight != loadimage.GetHeight() ) loadimage.Rescale( desiredWidth , desiredHeight ) ; - + wxBitmap bmp( loadimage ); CopyFromBitmap( bmp ) ;