Revert "Improve toolbar bitmap redraw performance on Windows."

This reverts commit 6170151cbc
This commit is contained in:
dsa-t 2024-05-25 20:32:48 +00:00
parent b89d4a7f20
commit 9a1b3471fd
1 changed files with 1 additions and 7 deletions

View File

@ -1,7 +1,7 @@
/* /*
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2021-2024 KiCad Developers, see AUTHORS.txt for contributors. * Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software: you can redistribute it and/or modify it * This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the * under the terms of the GNU General Public License as published by the
@ -167,13 +167,7 @@ void WX_AUI_TOOLBAR_ART::DrawButton( wxDC& aDc, wxWindow* aWindow, const wxAuiTo
} }
if( bmp.IsOk() ) if( bmp.IsOk() )
{
#ifdef __WXMSW__
// Optimization - see https://github.com/wxWidgets/wxWidgets/issues/23841
aDc.GetAsBitmap().ConvertToDIB();
#endif
aDc.DrawBitmap( bmp, bmpX, bmpY, true ); aDc.DrawBitmap( bmp, bmpX, bmpY, true );
}
// set the item's text color based on if it is disabled // set the item's text color based on if it is disabled
aDc.SetTextForeground( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) ); aDc.SetTextForeground( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );