diff options
author | Paul Gilbert | 2018-02-10 23:20:18 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-02-10 23:20:18 -0500 |
commit | 0ea996a0ffdc7946cfd05a9fe12ea99d04618132 (patch) | |
tree | a8ccd75e2f2ee3d249b16c1020175abb5a939310 /engines/bladerunner/ui/vk.cpp | |
parent | 678c320feba1390b7971b08fd8a92ece90cc00b0 (diff) | |
download | scummvm-rg350-0ea996a0ffdc7946cfd05a9fe12ea99d04618132.tar.gz scummvm-rg350-0ea996a0ffdc7946cfd05a9fe12ea99d04618132.tar.bz2 scummvm-rg350-0ea996a0ffdc7946cfd05a9fe12ea99d04618132.zip |
BLADERUNNER: Fix compilation in Visual Studio
Diffstat (limited to 'engines/bladerunner/ui/vk.cpp')
-rw-r--r-- | engines/bladerunner/ui/vk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/ui/vk.cpp b/engines/bladerunner/ui/vk.cpp index fab58e994f..078b60abbf 100644 --- a/engines/bladerunner/ui/vk.cpp +++ b/engines/bladerunner/ui/vk.cpp @@ -664,7 +664,7 @@ void VK::drawNeedle(Graphics::Surface &surface) { x = CLIP(x + (int)_vm->_rnd.getRandomNumberRng(0, 4) - 2, 165, 245); } - float needleOffset = abs(38.0f - _needleValue); + float needleOffset = ABS(38.0f - _needleValue); float y = 345 - sqrt(72.0f * 72.0f - needleOffset * needleOffset); float colorIntensity = MIN(78.0f, _needleValue + 39.0f) / 78.0f; @@ -846,7 +846,7 @@ void VK::animateAdjustment(int target) { void VK::setAdjustment(int x) { _adjustment = CLIP(x - 4, 154, 246); - float offset = abs(199.0f - _adjustment); + float offset = ABS(199.0f - _adjustment); int y = sqrt(88.0f * 88.0f - offset * offset); _buttons->setImageLeft(1, _adjustment); _buttons->setImageTop(1, 345 - y); |