From 1529f5469cad4e99f7a7e3552358932ea104a0f2 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 16 Jul 2024 23:48:32 -0600 Subject: [PATCH] LibGfx+icc: Prefix AK::FixedPoint with AK Namespace --- Userland/Libraries/LibGfx/ICC/TagTypes.h | 4 ++-- Userland/Utilities/icc.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibGfx/ICC/TagTypes.h b/Userland/Libraries/LibGfx/ICC/TagTypes.h index a1b59edb682..f62b1d3eff0 100644 --- a/Userland/Libraries/LibGfx/ICC/TagTypes.h +++ b/Userland/Libraries/LibGfx/ICC/TagTypes.h @@ -62,8 +62,8 @@ inline FloatVector3 lerp_nd(Function size, Function; -using U16Fixed16 = FixedPoint<16, u32>; +using S15Fixed16 = AK::FixedPoint<16, i32>; +using U16Fixed16 = AK::FixedPoint<16, u32>; struct XYZ { float X { 0 }; diff --git a/Userland/Utilities/icc.cpp b/Userland/Utilities/icc.cpp index f86189d5016..cbfd02e2742 100644 --- a/Userland/Utilities/icc.cpp +++ b/Userland/Utilities/icc.cpp @@ -40,7 +40,7 @@ static void out_curve(Gfx::ICC::CurveTagData const& curve, int indent_amount) if (curve.values().is_empty()) { outln("{: >{}}identity curve", "", indent_amount); } else if (curve.values().size() == 1) { - outln("{: >{}}gamma: {}", "", indent_amount, FixedPoint<8, u16>::create_raw(curve.values()[0])); + outln("{: >{}}gamma: {}", "", indent_amount, AK::FixedPoint<8, u16>::create_raw(curve.values()[0])); } else { // FIXME: Maybe print the actual points if -v is passed? outln("{: >{}}curve with {} points", "", indent_amount, curve.values().size());