aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPComboPopupButton.m
diff options
context:
space:
mode:
authorMarius Ursache <marius@marius.me.uk>2016-02-29 21:39:49 +1100
committerMarius Ursache <marius@marius.me.uk>2016-02-29 21:39:49 +1100
commit7e9ba2cf6f42ef7d2e0dca07382b090a78e3c7c3 (patch)
tree34261eb506bddff6c8d9b1a045d51d83457aa475 /Source/SPComboPopupButton.m
parent1a9c39929f7c8a7102f54a31a8b7875482845240 (diff)
downloadsequelpro-7e9ba2cf6f42ef7d2e0dca07382b090a78e3c7c3.tar.gz
sequelpro-7e9ba2cf6f42ef7d2e0dca07382b090a78e3c7c3.tar.bz2
sequelpro-7e9ba2cf6f42ef7d2e0dca07382b090a78e3c7c3.zip
Fixed fabs compiler warnings
Diffstat (limited to 'Source/SPComboPopupButton.m')
-rw-r--r--Source/SPComboPopupButton.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPComboPopupButton.m b/Source/SPComboPopupButton.m
index 8c090911..3df3d6ec 100644
--- a/Source/SPComboPopupButton.m
+++ b/Source/SPComboPopupButton.m
@@ -129,9 +129,9 @@
CGContextSaveGState(context);
CGContextSetStrokeColor(context, lineColorParts);
- CGContextAddRect(context, CGRectMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent, 1.f, boundsRect.size.height - abs(2 * heightIndent)));
+ CGContextAddRect(context, CGRectMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent, 1.f, boundsRect.size.height - fabs(2 * heightIndent)));
CGContextClip(context);
- CGContextDrawLinearGradient(context, lineGradient, CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent), CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + boundsRect.size.height - abs(heightIndent)), 0);
+ CGContextDrawLinearGradient(context, lineGradient, CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent), CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + boundsRect.size.height - fabs(heightIndent)), 0);
CGContextRestoreGState(context);
CGGradientRelease(lineGradient);
@@ -281,7 +281,7 @@
// Custom tracking to be performed - indent the vertical button area slightly
- activeRect = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y + heightIndent, cellFrame.size.width - [(SPComboPopupButton *)controlView lineOffset] + 1, cellFrame.size.height - fabsf(2 * heightIndent));
+ activeRect = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y + heightIndent, cellFrame.size.width - [(SPComboPopupButton *)controlView lineOffset] + 1, cellFrame.size.height - fabs(2 * heightIndent));
// Continue tracking the mouse while it's down, updating the state as it enters and leaves the cell,
// until it is released; if still within the cell, perform a click.