diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-08 07:26:04 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-08 07:26:08 +0200 |
commit | c9c2621accb68634685a14703491cacdd7ed2bb1 (patch) | |
tree | 51b55692a6010c533dfd98087e12f555a54772e8 /include/Body.hpp | |
parent | 0943801f321216dabe9f45593f608a222c0d4310 (diff) |
Retain fullscreen video when changing to next video
Diffstat (limited to 'include/Body.hpp')
-rw-r--r-- | include/Body.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 65aae8d..5d16898 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -47,11 +47,15 @@ namespace QuickMedia { sf::Text progress_text; int selected_item; std::vector<std::unique_ptr<BodyItem>> items; - std::vector<std::shared_ptr<sf::Texture>> item_thumbnail_textures; std::thread thumbnail_load_thread; bool draw_thumbnails; private: + struct ThumbnailData { + std::string url; + std::shared_ptr<sf::Texture> texture; + }; std::shared_ptr<sf::Texture> load_thumbnail_from_url(const std::string &url); + std::vector<ThumbnailData> item_thumbnail_textures; bool loading_thumbnail; }; }
\ No newline at end of file |