aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index 6b352b3..4aa194b 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -473,6 +473,8 @@ namespace QuickMedia {
if(item_thumbnail->loading_state == LoadingState::FINISHED_LOADING && item_thumbnail->image->getSize().x > 0 && item_thumbnail->image->getSize().y > 0) {
if(!item_thumbnail->texture.loadFromImage(*item_thumbnail->image))
fprintf(stderr, "Warning: failed to load texture from image: %s\n", item->thumbnail_url.c_str());
+ //item_thumbnail->texture.setSmooth(true);
+ //item_thumbnail->texture.generateMipmap();
item_thumbnail->image.reset();
item_thumbnail->loading_state = LoadingState::APPLIED_TO_TEXTURE;
}
@@ -631,6 +633,8 @@ namespace QuickMedia {
if(!item->visible && !item->get_description().empty())
item->visible = string_find_case_insensitive(item->get_description(), text);
}
+
+ select_first_item();
}
bool Body::no_items_visible() const {