summaryrefslogtreecommitdiff
path: root/wx+/rtl.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-11-27 10:33:00 -0500
committerB. Stack <bgstack15@gmail.com>2023-11-27 10:33:00 -0500
commit2e61b9b6258f29c03cb3b0da48282f3a87590702 (patch)
tree2be66dfaf965d246ea2df6248c7890208887e6bb /wx+/rtl.h
parentadd upstream 13.1 (diff)
downloadFreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.gz
FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.bz2
FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.zip
add upstream 13.213.2
Diffstat (limited to 'wx+/rtl.h')
-rw-r--r--wx+/rtl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/wx+/rtl.h b/wx+/rtl.h
index 80a75671..07488b6c 100644
--- a/wx+/rtl.h
+++ b/wx+/rtl.h
@@ -42,14 +42,14 @@ void drawBitmapAligned(wxDC& dc, const wxImage& img, const wxRect& rect, int ali
{
wxPoint pt = rect.GetTopLeft();
if (alignment & wxALIGN_RIGHT) //note: wxALIGN_LEFT == 0!
- pt.x += rect.width - img.GetWidth();
+ pt.x += rect.width - screenToWxsize(img.GetWidth());
else if (alignment & wxALIGN_CENTER_HORIZONTAL)
- pt.x += (rect.width - img.GetWidth()) / 2;
+ pt.x += (rect.width - screenToWxsize(img.GetWidth())) / 2;
if (alignment & wxALIGN_BOTTOM) //note: wxALIGN_TOP == 0!
- pt.y += rect.height - img.GetHeight();
+ pt.y += rect.height - screenToWxsize(img.GetHeight());
else if (alignment & wxALIGN_CENTER_VERTICAL)
- pt.y += (rect.height - img.GetHeight()) / 2;
+ pt.y += (rect.height - screenToWxsize(img.GetHeight())) / 2;
dc.DrawBitmap(toScaledBitmap(img), pt);
}
bgstack15