diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-06-04 12:07:12 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-06-04 12:07:12 +0200 |
| commit | cffa5f1186db7e3733c5b64bf1fb5ec94013a549 (patch) | |
| tree | 19211cfe8bca556e107a569a5eefa5dd555a2d29 | |
| parent | 40f0d247905003af19933dc48738657cbc2c0c72 (diff) | |
Debug wxBitmapBundle
| -rw-r--r-- | src/preferences/BoardPrefs.hpp | 6 | ||||
| -rw-r--r-- | src/preferences/EditorPrefs.hpp | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/preferences/BoardPrefs.hpp b/src/preferences/BoardPrefs.hpp index 7be1dfb..68d6f02 100644 --- a/src/preferences/BoardPrefs.hpp +++ b/src/preferences/BoardPrefs.hpp @@ -6,7 +6,9 @@ #include <wx/preferences.h> #include <wx/spinctrl.h> #include <wx/stdpaths.h> - +#ifdef __APPLE__ +#include <wx/bmpbndl.h> +#endif /** * @brief Configuration page for the BoardCanvas * @@ -115,9 +117,11 @@ public: virtual wxBitmap GetLargeIcon() { return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR); } + #ifdef __APPLE__ virtual wxBitmapBundle GetIcon() { return wxBitmapBundle::FromBitmap(LoadPNG("ui_rook")); } + #endif virtual wxWindow *CreateWindow(wxWindow *parent) { return new BoardPrefsPanel(parent); } diff --git a/src/preferences/EditorPrefs.hpp b/src/preferences/EditorPrefs.hpp index 1db5714..657fa9c 100644 --- a/src/preferences/EditorPrefs.hpp +++ b/src/preferences/EditorPrefs.hpp @@ -5,7 +5,9 @@ #include <wx/preferences.h> #include <wx/spinctrl.h> #include <wx/stdpaths.h> - +#ifdef __APPLE__ +#include <wx/bmpbndl.h> +#endif /** * @brief Configuration page for the EditorCanvas * @@ -63,9 +65,11 @@ public: virtual wxBitmap GetLargeIcon() { return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR); } + #ifdef __APPLE__ virtual wxBitmapBundle GetIcon() { return wxBitmapBundle::FromBitmap(LoadPNG("ui_text_alt")); } + #endif virtual wxWindow *CreateWindow(wxWindow *parent) { return new EditorPrefsPanel(parent); } |
