summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-11 10:57:01 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-11 10:57:01 +0200
commit63fd3d143387bc0dbbbe228955421a59239dbe5c (patch)
tree866d7b658e01f957be6d4f33de04c8f0a0ba349c
parent32d04ddb5c583938f470ed74bda8a50cc2ec9960 (diff)
Fix link icon width again.
Seems to be different on wxWidgets 3.1.x vs 3.2.x.
-rw-r--r--src/wx/video_panel.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc
index 859c0a886..e065f9bb4 100644
--- a/src/wx/video_panel.cc
+++ b/src/wx/video_panel.cc
@@ -108,7 +108,11 @@ VideoPanel::create ()
int const link_height = 32;
#elif defined(DCPOMATIC_OSX)
int const crop_width = 56;
+#if wxCHECK_VERSION(3, 2, 0)
int const link_width = 8 + 15 / dpi_scale_factor(this);
+#else
+ int const link_width = 23;
+#endif
int const link_height = 28;
#else
int const crop_width = 56;