From 065e700fc849a554b636904e2046e17c007f66a9 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sun, 29 Dec 2019 02:03:46 +0000 Subject: [PATCH] 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 --- src/wx/cmdevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index fde25715..75b08721 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -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"