From ad2685624cf233456623c5fa34083412df53873c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 16 Jun 2022 14:43:20 +0200 Subject: Soundcloud: fix title and download link not updating when changing video, fix text y offset after mgl update --- src/gui/Button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/Button.cpp b/src/gui/Button.cpp index bf9c174..bf74b8d 100644 --- a/src/gui/Button.cpp +++ b/src/gui/Button.cpp @@ -62,7 +62,7 @@ namespace QuickMedia { background.set_position(pos); const auto label_bounds = label.get_bounds(); - mgl::vec2f label_pos(pos + background.get_size() * 0.5f - label_bounds.size * 0.5f - mgl::vec2f(0.0f, 5.0f * scale)); + mgl::vec2f label_pos(pos + background.get_size() * 0.5f - label_bounds.size * 0.5f - mgl::vec2f(0.0f, 1.0f * scale)); label_pos.x = floor(label_pos.x); label_pos.y = floor(label_pos.y); label.set_position(label_pos); -- cgit v1.2.3