This commit is contained in:
YuSanka 2020-01-28 16:23:05 +01:00
parent cd2973fad3
commit d45744b7bb

View File

@ -172,7 +172,7 @@ wxBitmap* BitmapCache::insert(const std::string &bitmap_key, const wxBitmap *beg
height *= 1.0 / scale; height *= 1.0 / scale;
#endif #endif
wxBitmap *bitmap = this->insert(bitmap_key, width, height); wxBitmap *bitmap = this->insert(bitmap_key, width, height, scale);
wxMemoryDC memDC; wxMemoryDC memDC;
memDC.SelectObject(*bitmap); memDC.SelectObject(*bitmap);
memDC.SetBackground(*wxTRANSPARENT_BRUSH); memDC.SetBackground(*wxTRANSPARENT_BRUSH);