diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-28 10:18:49 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-28 10:18:49 +0200 |
commit | 841b2e5d1367b1b5638d13dbed155ec53914e015 (patch) | |
tree | 93518fad445a53d5a8b79dc56150b9ba352170db /Demos | |
parent | 63619b9f7c5141d8ecdce98ea0f70039f4186e25 (diff) | |
download | serenity-841b2e5d1367b1b5638d13dbed155ec53914e015.zip |
WindowServer+LibGUI: Pass window icons as shared buffers rather than paths.
Now that we support more than 2 clients per shared buffer, we can use them
for window icons. I didn't do that previously since it would have made the
Taskbar process unable to access the icons.
This opens up some nice possibilities for programmatically generated icons.
Diffstat (limited to 'Demos')
-rw-r--r-- | Demos/Fire/Fire.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Fire/Fire.cpp b/Demos/Fire/Fire.cpp index 13b28ebf1f..92202d75a4 100644 --- a/Demos/Fire/Fire.cpp +++ b/Demos/Fire/Fire.cpp @@ -17,6 +17,7 @@ */ #include <LibDraw/GraphicsBitmap.h> +#include <LibDraw/PNGLoader.h> #include <LibGUI/GApplication.h> #include <LibGUI/GLabel.h> #include <LibGUI/GPainter.h> @@ -229,7 +230,7 @@ int main(int argc, char** argv) fire->set_stat_label(time); window->show(); - window->set_icon_path("/res/icons/16x16/app-demo.png"); + window->set_icon(load_png("/res/icons/16x16/app-demo.png")); return app.exec(); } |