aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-25 11:42:40 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-25 11:42:40 +1100
commit2cfe99dc4716bb77d500e2e9b88a57ee621e2135 (patch)
tree17efb792e6e51473c96e8983f58db6c279d5f193 /win32/ScintillaWin.cxx
parent1cf755b51cc643240f60131a8fac5e990cfa5e9f (diff)
downloadscintilla-mirror-2cfe99dc4716bb77d500e2e9b88a57ee621e2135.tar.gz
Use generic std::abs instead of abs and fabs.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 7dc0a9255..a8275ec4d 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1343,7 +1343,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
}
// Either SCROLL or ZOOM. We handle the wheel steppings calculation
wheelDelta -= GET_WHEEL_DELTA_WPARAM(wParam);
- if (abs(wheelDelta) >= WHEEL_DELTA && linesPerScroll > 0) {
+ if (std::abs(wheelDelta) >= WHEEL_DELTA && linesPerScroll > 0) {
Sci::Line linesToScroll = linesPerScroll;
if (linesPerScroll == WHEEL_PAGESCROLL)
linesToScroll = LinesOnScreen() - 1;
@@ -2712,7 +2712,7 @@ void ScintillaWin::ImeStartComposition() {
deviceHeight = (sizeZoomed * surface->LogPixelsY()) / 72;
}
// The negative is to allow for leading
- lf.lfHeight = -(abs(deviceHeight / SC_FONT_SIZE_MULTIPLIER));
+ lf.lfHeight = -(std::abs(deviceHeight / SC_FONT_SIZE_MULTIPLIER));
lf.lfWeight = vs.styles[styleHere].weight;
lf.lfItalic = static_cast<BYTE>(vs.styles[styleHere].italic ? 1 : 0);
lf.lfCharSet = DEFAULT_CHARSET;