Fix icon in about dialog.

Use GetIcons() to get the IconBundle and call GetIcon() on it to get a
32x32 icon with fallback.

For whatever reason this works while just GetIcon() does not.

Source:

https://forums.wxwidgets.org/viewtopic.php?t=44818

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2019-12-29 02:03:46 +00:00
parent f3e4b05fa8
commit 065e700fc8
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 1 additions and 1 deletions

View File

@ -2748,7 +2748,7 @@ EVT_HANDLER(wxID_ABOUT, "About...")
// setting website, icon, license uses custom aboutbox on win32 & macosx
// but at least win32 standard about is nothing special
ai.SetWebSite(wxT("http://www.vba-m.com/"));
ai.SetIcon(GetIcon());
ai.SetIcon(GetIcons().GetIcon(wxSize(32, 32), wxIconBundle::FALLBACK_NEAREST_LARGER));
ai.SetDescription(_("Nintendo GameBoy (+Color+Advance) emulator."));
ai.SetCopyright(_("Copyright (C) 1999-2003 Forgotten\nCopyright (C) 2004-2006 VBA development team\nCopyright (C) 2007-2017 VBA-M development team"));
ai.SetLicense(_("This program is free software: you can redistribute it and/or modify\n"