aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Fourchan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Fourchan.cpp')
-rw-r--r--src/plugins/Fourchan.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp
index 01c8546..c906c4d 100644
--- a/src/plugins/Fourchan.cpp
+++ b/src/plugins/Fourchan.cpp
@@ -353,11 +353,11 @@ namespace QuickMedia {
body_item->thumbnail_url = fourchan_image_url + board_id + "/" + tim_str + "s.jpg";
body_item->url = fourchan_image_url + board_id + "/" + tim_str + ext_str;
- sf::Vector2i thumbnail_size(64, 64);
+ mgl::vec2i thumbnail_size(64, 64);
const Json::Value &tn_w = post["tn_w"];
const Json::Value &tn_h = post["tn_h"];
if(tn_w.isNumeric() && tn_h.isNumeric())
- thumbnail_size = sf::Vector2i(tn_w.asInt(), tn_h.asInt());
+ thumbnail_size = mgl::vec2i(tn_w.asInt(), tn_h.asInt());
body_item->thumbnail_size = std::move(thumbnail_size);
}
@@ -439,11 +439,11 @@ namespace QuickMedia {
// thumbnails always has .jpg extension even if they are gifs or webm.
body_item->thumbnail_url = fourchan_image_url + board_id + "/" + std::to_string(tim.asInt64()) + "s.jpg";
- sf::Vector2i thumbnail_size(64, 64);
+ mgl::vec2i thumbnail_size(64, 64);
const Json::Value &tn_w = thread["tn_w"];
const Json::Value &tn_h = thread["tn_h"];
if(tn_w.isNumeric() && tn_h.isNumeric())
- thumbnail_size = sf::Vector2i(tn_w.asInt() * 0.5, tn_h.asInt() * 0.5);
+ thumbnail_size = mgl::vec2i(tn_w.asInt() / 2, tn_h.asInt() / 2);
body_item->thumbnail_size = std::move(thumbnail_size);
}