From 91c91b2a6e3b8694988e7f81c99230ec019ecbd8 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Fri, 29 Jan 2021 13:41:37 -0500 Subject: Add icon to the window Icon was generated from the .png with ImageMagick's convert convert res/icon.png -define h:format=rgba -size 32x32 src/icon.h Then renaming the array exposed via the header --- src/ur.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ur.cpp') diff --git a/src/ur.cpp b/src/ur.cpp index 68a630f..f0b2cd0 100644 --- a/src/ur.cpp +++ b/src/ur.cpp @@ -1,4 +1,5 @@ #include "helper.hpp" +#include "icon.h" #include "random.hpp" #include "timedLatch.hpp" #include @@ -236,6 +237,7 @@ main() sf::RenderWindow window(sf::VideoMode(SCR_W, SCR_H), TITLE); window.setFramerateLimit(60); window.setVerticalSyncEnabled(true); + window.setIcon(32, 32, ur_icon); sf::View view(window.getDefaultView()); view.zoom(ZOOM); -- cgit v1.2.3-54-g00ecf