summaryrefslogtreecommitdiff
path: root/src/ur.cpp
diff options
context:
space:
mode:
authorStephen Enders <smenders@gmail.com>2021-01-29 13:41:37 -0500
committerStephen Enders <smenders@gmail.com>2021-01-29 13:41:37 -0500
commit91c91b2a6e3b8694988e7f81c99230ec019ecbd8 (patch)
treeafc7ffd7141f2f73b114cc1d574081c5a2af6215 /src/ur.cpp
parent79b14ff948efe265a1d21d0f38a6371de8068b52 (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.cpp2
1 files changed, 2 insertions, 0 deletions
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 <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);