From 5bce58cd3e008ff47e137904a13cda0a9335e1c3 Mon Sep 17 00:00:00 2001 From: Tom Needham <06needhamt@gmail.com> Date: Wed, 17 Aug 2022 20:02:44 +0100 Subject: LibGfx: Plumb the TGALoader into ImageDecoder :^) This patch plumbs the TGALoader into ImageDecoder so TGA images can be decoded by the system --- Userland/Libraries/LibGfx/ImageDecoder.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibGfx/ImageDecoder.cpp b/Userland/Libraries/LibGfx/ImageDecoder.cpp index 8d9720767c..76093068a3 100644 --- a/Userland/Libraries/LibGfx/ImageDecoder.cpp +++ b/Userland/Libraries/LibGfx/ImageDecoder.cpp @@ -15,6 +15,7 @@ #include #include #include +#include namespace Gfx { @@ -66,6 +67,10 @@ RefPtr ImageDecoder::try_create(ReadonlyBytes bytes) if (plugin->sniff()) return plugin; + plugin = make(data, size); + if (plugin->sniff()) + return plugin; + return {}; }(data, size); -- cgit v1.2.3