From efc1e55e5815bcfd8612a3d42ef4e988bd8103b1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 29 May 2016 18:40:53 -0400 Subject: [PATCH] More OS X spinbox stuff. --- darwin/spinbox.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/darwin/spinbox.m b/darwin/spinbox.m index 7347ef91..0663e239 100644 --- a/darwin/spinbox.m +++ b/darwin/spinbox.m @@ -30,12 +30,12 @@ struct uiSpinbox { }; // yes folks, this varies by operating system! woo! +// 10.10 started drawing the NSStepper one point too low, so we have to fix it up conditionally +// TODO test this; we'll probably have to substitute 10_9 static CGFloat stepperYDelta(void) { - // 10.8 - 0 - // 10.9 - 0 - // 10.10 - -1 - // 10.11 - -1 + if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_9) + return 0; return -1; }