mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: [STUDIO-3459,STUDIO-3065] use FromDIP instead of em_unit load svg
Change-Id: I4be0de849ab825011c241d6da932a2574783ed6f
This commit is contained in:
@@ -451,7 +451,7 @@ wxBitmap create_scaled_bitmap( const std::string& bmp_name_in,
|
||||
// Try loading an SVG first, then PNG if SVG is not found:
|
||||
wxBitmap *bmp = cache.load_svg(bmp_name, width, height, grayscale, dark_mode, new_color, resize ? em_unit(win) * 0.1f : 0.f);
|
||||
if (bmp == nullptr) {
|
||||
bmp = cache.load_png(bmp_name, width, height, grayscale, resize ? em_unit(win) * 0.1f : 0.f);
|
||||
bmp = cache.load_png(bmp_name, width, height, grayscale, resize ? win->FromDIP(10) * 0.1f : 0.f);
|
||||
}
|
||||
|
||||
if (bmp == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user