summaryrefslogtreecommitdiff
path: root/wx+/rtl.h
diff options
context:
space:
mode:
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