Fold wxOSX-specific wxImageList into generic version
Get rid of wxOSX wxImageList implementation as it was 99% identical to the generic version and the non-identical parts should really have been made part of the generic version too from the beginning. Notably, use GetScaled{Width,Height}() in Add() method in the generic version too now.
This commit is contained in:
@@ -41,16 +41,11 @@ enum
|
||||
#define wxIMAGELIST_DRAW_SELECTED 0x0004
|
||||
#define wxIMAGELIST_DRAW_FOCUSED 0x0008
|
||||
|
||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||
#define wxHAS_NATIVE_IMAGELIST
|
||||
#endif
|
||||
|
||||
#if !defined(wxHAS_NATIVE_IMAGELIST)
|
||||
#include "wx/generic/imaglist.h"
|
||||
#elif defined(__WXMSW__)
|
||||
#if defined(__WXMSW__)
|
||||
#include "wx/msw/imaglist.h"
|
||||
#elif defined(__WXMAC__)
|
||||
#include "wx/osx/imaglist.h"
|
||||
#define wxHAS_NATIVE_IMAGELIST
|
||||
#else
|
||||
#include "wx/generic/imaglist.h"
|
||||
#endif
|
||||
|
||||
#endif // _WX_IMAGLIST_H_BASE_
|
||||
|
Reference in New Issue
Block a user