From 94e0c9205e6049c6b3295145af7fd39156e77543 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 3 Aug 2022 08:51:28 -0400 Subject: add upstream 11.23 --- wx+/dc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wx+/dc.h') diff --git a/wx+/dc.h b/wx+/dc.h index c93715c2..e22820a7 100644 --- a/wx+/dc.h +++ b/wx+/dc.h @@ -126,12 +126,12 @@ int getDpiScalePercent() inline -wxBitmapBundle toBitmapBundle(const wxImage& img /*expected to be DPI-scaled!*/) +wxBitmap toScaledBitmap(const wxImage& img /*expected to be DPI-scaled!*/) { - //return wxBitmap(img, -1 /*depth*/, static_cast(getDPI()) / defaultDpi); implementation just ignores scale parameter! WTF! + //wxBitmap(const wxImage& image, int depth = -1, double WXUNUSED(scale) = 1.0) => wxWidgets just ignores scale parameter! WTF! wxBitmap bmpScaled(img); bmpScaled.SetScaleFactor(getDisplayScaleFactor()); - return bmpScaled; + return bmpScaled; //when testing use 175% scaling: wxWidgets' scaling logic doesn't kick in for 150% only } -- cgit