diff options
author | Stephen Enders <smenders@gmail.com> | 2021-01-29 13:41:37 -0500 |
---|---|---|
committer | Stephen Enders <smenders@gmail.com> | 2021-01-29 13:41:37 -0500 |
commit | 91c91b2a6e3b8694988e7f81c99230ec019ecbd8 (patch) | |
tree | afc7ffd7141f2f73b114cc1d574081c5a2af6215 /src/ur.cpp | |
parent | 79b14ff948efe265a1d21d0f38a6371de8068b52 (diff) |
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
Diffstat (limited to 'src/ur.cpp')
-rw-r--r-- | src/ur.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,4 +1,5 @@ #include "helper.hpp" +#include "icon.h" #include "random.hpp" #include "timedLatch.hpp" #include <SFML/Graphics.hpp> @@ -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); |