Make wxBitmap::ConvertToDisabled() work correctly for scaled bitmaps
Preserve the scale factor after conversion. Closes #17307.
This commit is contained in:
parent
2fa4a0be4e
commit
fb5ff50eda
@ -302,7 +302,8 @@ wxBitmap::
|
||||
#endif
|
||||
ConvertToDisabled(unsigned char brightness) const
|
||||
{
|
||||
return ConvertToImage().ConvertToDisabled(brightness);
|
||||
const wxImage imgDisabled = ConvertToImage().ConvertToDisabled(brightness);
|
||||
return wxBitmap(imgDisabled, -1, GetScaleFactor());
|
||||
}
|
||||
#endif // wxUSE_IMAGE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user