gui: Fix Windows screenshot workaround comment.

It's an actual wx3.0 bug, not a bug in dialog construction.
This commit is contained in:
Jonathan Li 2015-09-01 17:43:38 +01:00
parent cc1d50a06c
commit 149b7fc347
1 changed files with 2 additions and 3 deletions

View File

@ -302,9 +302,8 @@ void Dialogs::BaseConfigurationDialog::OnScreenshot_Click( wxCommandEvent& evt )
{
ScopedBusyCursor busy( Cursor_ReallyBusy );
#ifdef __WXMSW__
// FIXME: Ideally the alpha channel information should be dealt with
// at the window level. This will do until I have a comprehensive fix
// ready.
// HACK: This works around an actual wx3.0 bug at the cost of icon
// quality. See http://trac.wxwidgets.org/ticket/14403 .
wxImage image = memBmp.ConvertToImage();
if (image.HasAlpha())
image.ClearAlpha();