Some small fixes for wxAboutBox HiDPI support

Always use the wxApp top window for default icon bundle, it's possible the
provided window is not the main one. Pass window argument to GetIcon() in
generic implementation. Make GetIcon() window parameter pointer-to-const.
This commit is contained in:
Paul Cornett
2026-05-21 15:17:38 -07:00
parent ee4fbdfb88
commit 47c35e67f5
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ public:
If non-null, this is used to help select an icon based on window DPI.
New since wxWidgets 3.3.3.
*/
wxIcon GetIcon(wxWindow* window = nullptr) const;
wxIcon GetIcon(const wxWindow* window = nullptr) const;
/**
Set the icon to be shown in the dialog. By default the icon of the main frame