Hack up wx to support @2x images in the toolbar. Oh please let's switch to Qt...
This commit is contained in:
1 parent
624c92f97e
commit
693cee36cb
3 files changed
+25
-15
No files matched your search
+7
-1
@@ -305,7 +305,13 @@ wxBitmap::
|
||||
#endif
|
||||
ConvertToDisabled(unsigned char brightness) const
|
||||
{
|
||||
return ConvertToImage().ConvertToDisabled(brightness);
|
||||
// XXX comex: scale support
|
||||
wxImage disabledImage = ConvertToImage().ConvertToDisabled(brightness);
|
||||
#ifdef __APPLE__
|
||||
return wxBitmap(disabledImage, -1, GetScaleFactor());
|
||||
#else
|
||||
return disabledImage;
|
||||
#endif
|
||||
}
|
||||
#endif // wxUSE_IMAGE
|
||||
|
||||
|
||||
Reference in new issue
Block a user