More OS X spinbox stuff.

This commit is contained in:
Pietro Gagliardi 2016-05-29 18:40:53 -04:00
parent 473e3b593b
commit efc1e55e58
1 changed files with 4 additions and 4 deletions

View File

@ -30,12 +30,12 @@ struct uiSpinbox {
}; };
// yes folks, this varies by operating system! woo! // 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) static CGFloat stepperYDelta(void)
{ {
// 10.8 - 0 if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_9)
// 10.9 - 0 return 0;
// 10.10 - -1
// 10.11 - -1
return -1; return -1;
} }