diff options
author | B. Stack <bgstack15@gmail.com> | 2022-08-03 12:51:45 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-08-03 12:51:45 +0000 |
commit | 3f91181f8458cb6a6d95e25123db874875f7b259 (patch) | |
tree | c36c0f0c5fab7aa60432e9e1d32ba5fdfabeb55e /wx+/dc.h | |
parent | Merge branch '11.22' into 'master' (diff) | |
parent | add upstream 11.23 (diff) | |
download | FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.tar.gz FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.tar.bz2 FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.zip |
Merge branch 'b11.23' into 'master'11.23
add upstream 11.23
See merge request opensource-tracking/FreeFileSync!46
Diffstat (limited to 'wx+/dc.h')
-rw-r--r-- | wx+/dc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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<double>(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 } |