summaryrefslogtreecommitdiff
path: root/wx+/rtl.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-08-03 12:51:45 +0000
committerB. Stack <bgstack15@gmail.com>2022-08-03 12:51:45 +0000
commit3f91181f8458cb6a6d95e25123db874875f7b259 (patch)
treec36c0f0c5fab7aa60432e9e1d32ba5fdfabeb55e /wx+/rtl.h
parentMerge branch '11.22' into 'master' (diff)
parentadd upstream 11.23 (diff)
downloadFreeFileSync-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+/rtl.h')
-rw-r--r--wx+/rtl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wx+/rtl.h b/wx+/rtl.h
index 9eb25bb6..42af52e1 100644
--- a/wx+/rtl.h
+++ b/wx+/rtl.h
@@ -10,6 +10,7 @@
#include <wx/dcmemory.h>
#include <wx/image.h>
#include <wx/app.h>
+#include "dc.h"
namespace zen
@@ -50,7 +51,7 @@ void drawBitmapAligned(wxDC& dc, const wxImage& img, const wxRect& rect, int ali
else if (alignment & wxALIGN_CENTER_VERTICAL)
pt.y += (rect.height - img.GetHeight()) / 2;
- dc.DrawBitmap(img, pt);
+ dc.DrawBitmap(toScaledBitmap(img), pt);
}
}
bgstack15