From 3dce4e2b9200a1cd4eca50147203cb34a31e0ef3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 Jun 2021 12:13:08 +0200 Subject: Add covers to mangadex, remove arrow left/right, require alt --- src/Body.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index 9843492..ce7f4f3 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -520,7 +520,7 @@ namespace QuickMedia { if(!show_drop_shadow) return; - const sf::Color color(21, 25, 30); + const sf::Color color(0, 0, 0, 50); const float height = 5.0f; sf::Vertex gradient_points[4]; @@ -1201,7 +1201,7 @@ namespace QuickMedia { const float text_height = (card_height - card_padding_y * 2.0f) - image_height - text_padding; const float underflow_text = text_pos.y - scissor_y; - const float underflow_height = underflow_text < 0.0f ? text_height + underflow_text : text_height; + const float underflow_height = underflow_text < 0.0f ? std::max(0.0f, text_height + underflow_text) : text_height; sf::View new_view(sf::FloatRect(0.0f, 0.0f, window_size.x, underflow_height)); new_view.setViewport(sf::FloatRect(0.0f, std::max(text_pos.y, scissor_y) / (float)window_size.y, 1.0f, underflow_height / (float)window_size.y)); window.setView(new_view); -- cgit v1.2.3