summaryrefslogtreecommitdiff
path: root/components/ratelimitindicator.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-07-25 23:00:16 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-07-25 23:46:44 -0400
commitea9dd29721da8c8bef126462c2ee4fd1e53d7edc (patch)
tree7583336e2b756fd13955f6aacd9446b43d75e179 /components/ratelimitindicator.cpp
parent96b8b19dd3b9187c66c5341b6ac8d41f6f8d6b32 (diff)
parent8321cd29d63d9d54891510b34a25f243cf278882 (diff)
downloadabaddon-portaudio-ea9dd29721da8c8bef126462c2ee4fd1e53d7edc.tar.gz
abaddon-portaudio-ea9dd29721da8c8bef126462c2ee4fd1e53d7edc.zip
Merge branch 'resources' (closes #29)
Diffstat (limited to 'components/ratelimitindicator.cpp')
-rw-r--r--components/ratelimitindicator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/ratelimitindicator.cpp b/components/ratelimitindicator.cpp
index d962f98..6115900 100644
--- a/components/ratelimitindicator.cpp
+++ b/components/ratelimitindicator.cpp
@@ -15,9 +15,10 @@ RateLimitIndicator::RateLimitIndicator()
add(m_img);
m_label.show();
- if (std::filesystem::exists("./res/clock.png")) {
+ const static auto clock_path = Abaddon::GetResPath("/clock.png");
+ if (std::filesystem::exists(clock_path)) {
try {
- const auto pixbuf = Gdk::Pixbuf::create_from_file("./res/clock.png");
+ const auto pixbuf = Gdk::Pixbuf::create_from_file(clock_path);
int w, h;
GetImageDimensions(pixbuf->get_width(), pixbuf->get_height(), w, h, 20, 10);
m_img.property_pixbuf() = pixbuf->scale_simple(w, h, Gdk::INTERP_BILINEAR);