diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-04 23:40:52 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-04 23:40:52 +0200 |
commit | f3aec1a0d97fcc930ceea2aefc2fb857c686cf8b (patch) | |
tree | b2a50deb917f8b6675a747411fbc40d3c6fe47e8 /LibM | |
parent | a8c856ed3d9d47ba6ca8ec4ab1d12e2f6fe484e4 (diff) | |
download | serenity-f3aec1a0d97fcc930ceea2aefc2fb857c686cf8b.zip |
Painter: Re-enable diagonal draw_line().
This code still needs clipping, but the basic concept works. It was disabled
since before the kernel had floating point support.
Diffstat (limited to 'LibM')
-rw-r--r-- | LibM/math.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/LibM/math.cpp b/LibM/math.cpp index d707c51c86..3637da62ab 100644 --- a/LibM/math.cpp +++ b/LibM/math.cpp @@ -91,4 +91,9 @@ double acos(double) ASSERT_NOT_REACHED(); } +double fabs(double value) +{ + return value < 0 ? -value : value; +} + } |