aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/MyAnimeList.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-17 09:47:45 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-17 09:59:29 +0100
commit453eac7f1f5ef70390ec51087fc1f190811a7507 (patch)
tree21a32ef6de9a3d7c29562484104b56c12518a6f0 /src/plugins/MyAnimeList.cpp
parentfc49d40c0d2f6edbbe9dde1f1b53d6a17e9d9f7d (diff)
Replace sfml with mgl
Diffstat (limited to 'src/plugins/MyAnimeList.cpp')
-rw-r--r--src/plugins/MyAnimeList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/MyAnimeList.cpp b/src/plugins/MyAnimeList.cpp
index a4d1d30..ee5d4fd 100644
--- a/src/plugins/MyAnimeList.cpp
+++ b/src/plugins/MyAnimeList.cpp
@@ -7,7 +7,7 @@
namespace QuickMedia {
// Returns {0, 0} if unknown
- static sf::Vector2i thumbnail_url_get_resolution(const std::string &url) {
+ static mgl::vec2i thumbnail_url_get_resolution(const std::string &url) {
const size_t index = url.find("/r/");
if(index == std::string::npos)
return {0, 0};
@@ -22,7 +22,7 @@ namespace QuickMedia {
if(size_end_index == std::string::npos)
return {0, 0};
- sf::Vector2i size;
+ mgl::vec2i size;
if(!to_num(url.c_str() + width_index, (x_index - width_index), size.x) || !to_num(url.c_str() + height_index, (size_end_index - height_index), size.y))
return {0, 0};