Skip to content

Commit

Permalink
refactor: define icon path in sparq_config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
vtx22 committed Mar 7, 2025
1 parent dce598b commit 5e25745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int SPARQ::window_init()
static sf::RenderWindow window(sf::VideoMode(1280, 720), std::string("SPARQ - ") + SPARQ_VERSION, sf::Style::Default, settings);

sf::Image icon;
if (icon.loadFromFile("./assets/icon.png"))
if (icon.loadFromFile(SPARQ_ICON_FILE))
{
window.setIcon(icon.getSize().x, icon.getSize().y, icon.getPixelsPtr());
}
Expand Down
1 change: 1 addition & 0 deletions src/sparq_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
#define SPARQ_ANTIALIASING 8
#define SPARQ_FONT "./assets/roboto.ttf"
#define SPARQ_CONFIG_FILE "config.ini"
#define SPARQ_ICON_FILE "./assets/icon.png"

constexpr bool SPARQ_PLATFORM_LITTLE_ENDIAN = true;

0 comments on commit 5e25745

Please sign in to comment.