diff options
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/InfoBar.mm | 2 | ||||
| -rw-r--r-- | cocoa/ScintillaView.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 19f2c6943..a351ce40f 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -392,7 +392,7 @@ static float BarFontSize = 10.0; // We only work with some preset zoom values. If the given value does not correspond // to one then show no selection. - while (count < numberOfDefaultItems && (fabs(newScaleFactor - DefaultScaleMenuFactors[count]) > 0.07)) + while (count < numberOfDefaultItems && (std::abs(newScaleFactor - DefaultScaleMenuFactors[count]) > 0.07)) count++; if (count == numberOfDefaultItems) [mZoomPopup selectItemAtIndex: -1]; diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index d1816a25d..e89b1fdf1 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -1342,7 +1342,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 zoomDelta += event.magnification * 10.0; - if (fabs(zoomDelta)>=1.0) { + if (std::abs(zoomDelta)>=1.0) { long zoomFactor = static_cast<long>([self getGeneralProperty: SCI_GETZOOM] + zoomDelta); [self setGeneralProperty: SCI_SETZOOM parameter: zoomFactor value:0]; zoomDelta = 0.0; |
