X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d68cd13598d84cbd080cd24f04bc58f7330d630..cbe6a493b66ad18b6a1f490589f2706f0f841b01:/src/common/artstd.cpp diff --git a/src/common/artstd.cpp b/src/common/artstd.cpp index b6889e3f87..3fa46d4d45 100644 --- a/src/common/artstd.cpp +++ b/src/common/artstd.cpp @@ -219,7 +219,12 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id, int bmp_w = bmp.GetWidth(); int bmp_h = bmp.GetHeight(); - if ((bmp_h < bestSize.x) && (bmp_w < bestSize.y)) + if (bmp_w == 16 && bmp_h == 15 && bestSize == wxSize(16, 16)) + { + // Do nothing in this special but quite common case, because scaling + // with only a pixel difference will look horrible. + } + else if ((bmp_h < bestSize.x) && (bmp_w < bestSize.y)) { // the caller wants default size, which is larger than // the image we have; to avoid degrading it visually by