LibGfx: Prefer using Gfx::Bitmap::load_from_file instead of load_png()

Code that just wants to open a Gfx::Bitmap from a file should not be
calling the PNG codec directly.
This commit is contained in:
Andreas Kling 2020-02-06 13:39:17 +01:00
commit 5c06c32df4
Notes: sideshowbarker 2024-07-19 09:34:57 +09:00
31 changed files with 48 additions and 77 deletions

View file

@ -26,7 +26,6 @@
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGfx/PNGLoader.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GBoxLayout.h>
#include <LibGUI/GButton.h>
@ -34,6 +33,7 @@
#include <LibGUI/GLabel.h>
#include <LibGUI/GStackWidget.h>
#include <LibGUI/GWindow.h>
#include <LibGfx/PNGLoader.h>
#include "TextWidget.h"