mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 17:02:51 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user