diff options
author | B. Stack <bgstack15@gmail.com> | 2023-11-27 10:33:00 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-11-27 10:33:00 -0500 |
commit | 2e61b9b6258f29c03cb3b0da48282f3a87590702 (patch) | |
tree | 2be66dfaf965d246ea2df6248c7890208887e6bb /wx+/rtl.h | |
parent | add upstream 13.1 (diff) | |
download | FreeFileSync-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |