summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/diveeventitem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp
index b2e3db8c9..3e1de48f3 100644
--- a/profile-widget/diveeventitem.cpp
+++ b/profile-widget/diveeventitem.cpp
@@ -66,8 +66,13 @@ void DiveEventItem::setupPixmap()
#ifndef SUBSURFACE_MOBILE
int sz_bigger = metrics.sz_med + metrics.sz_small; // ex 40px
#else
+#if defined(Q_OS_IOS)
+ // on iOS devices we need to adjust for Device Pixel Ratio
+ int sz_bigger = metrics.sz_med * metrics.dpr;
+#else
int sz_bigger = metrics.sz_med;
#endif
+#endif
int sz_pix = sz_bigger/2; // ex 20px
#define EVENT_PIXMAP(PIX) QPixmap(QString(PIX)).scaled(sz_pix, sz_pix, Qt::KeepAspectRatio, Qt::SmoothTransformation)