summaryrefslogtreecommitdiff
path: root/Demos/Fire
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-06 13:39:17 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-06 13:39:17 +0100
commit5c06c32df4062a17e1caf7aa01ee51e87852070a (patch)
tree1590bbe4af3624accc6e30575c9ec6a64d692890 /Demos/Fire
parentf8b00aa29010cc3a99b285d0afd88314c40be079 (diff)
downloadserenity-5c06c32df4062a17e1caf7aa01ee51e87852070a.zip
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.
Diffstat (limited to 'Demos/Fire')
-rw-r--r--Demos/Fire/Fire.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Demos/Fire/Fire.cpp b/Demos/Fire/Fire.cpp
index 3e2703b4f4..2176de413c 100644
--- a/Demos/Fire/Fire.cpp
+++ b/Demos/Fire/Fire.cpp
@@ -43,7 +43,6 @@
*/
#include <LibGfx/Bitmap.h>
-#include <LibGfx/PNGLoader.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GLabel.h>
#include <LibGUI/GPainter.h>
@@ -257,7 +256,7 @@ int main(int argc, char** argv)
fire->set_stat_label(time);
window->show();
- window->set_icon(Gfx::load_png("/res/icons/16x16/app-demo.png"));
+ window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-demo.png"));
return app.exec();
}