summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/Font/VectorFont.h1
-rw-r--r--Userland/Libraries/LibGfx/PNGShared.h9
2 files changed, 7 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGfx/Font/VectorFont.h b/Userland/Libraries/LibGfx/Font/VectorFont.h
index 4932818f4d..ed7ec9d141 100644
--- a/Userland/Libraries/LibGfx/Font/VectorFont.h
+++ b/Userland/Libraries/LibGfx/Font/VectorFont.h
@@ -8,6 +8,7 @@
#include <AK/Noncopyable.h>
#include <AK/RefCounted.h>
+#include <LibGfx/Forward.h>
namespace Gfx {
diff --git a/Userland/Libraries/LibGfx/PNGShared.h b/Userland/Libraries/LibGfx/PNGShared.h
index b1fecd12c1..299fceb29e 100644
--- a/Userland/Libraries/LibGfx/PNGShared.h
+++ b/Userland/Libraries/LibGfx/PNGShared.h
@@ -6,6 +6,9 @@
#pragma once
+#include <AK/Array.h>
+#include <AK/SIMD.h>
+
namespace Gfx::PNG {
// https://www.w3.org/TR/PNG/#5PNG-file-signature
@@ -33,9 +36,9 @@ enum class FilterType : u8 {
ALWAYS_INLINE u8 paeth_predictor(u8 a, u8 b, u8 c)
{
int p = a + b - c;
- int pa = abs(p - a);
- int pb = abs(p - b);
- int pc = abs(p - c);
+ int pa = AK::abs(p - a);
+ int pb = AK::abs(p - b);
+ int pc = AK::abs(p - c);
if (pa <= pb && pa <= pc)
return a;
if (pb <= pc)