summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-07 10:39:18 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-07 10:39:18 +0300
commite3b11bfefd9c506873840b63fc8cb44ce5a4357e (patch)
tree2e8a00b7250f5d353bd6f93599a9397552ad4920 /src/ui
parent63af9a9cd4b048380a763cf4003e977bb0d6275a (diff)
macOS: No display scaling, only pixel ratio
IssueID #239
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index ce9d730e..c07feaf9 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1289,7 +1289,12 @@ static float pixelRatio_Window_(const iWindow *d) {
1289#endif 1289#endif
1290 1290
1291static float displayScale_Window_(const iWindow *d) { 1291static float displayScale_Window_(const iWindow *d) {
1292#if defined (iPlatformMsys) 1292#if defined (iPlatformApple)
1293 iUnused(d);
1294 /* Apple UI sizes are fixed and only scaled by pixel ratio. */
1295 /* TODO: iOS text size setting? */
1296 return 1.0f;
1297#elif defined (iPlatformMsys)
1293 iUnused(d); 1298 iUnused(d);
1294 return desktopDPI_Win32(); 1299 return desktopDPI_Win32();
1295#else 1300#else