aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-18 20:36:37 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-18 20:36:37 +0200
commit834347390d90e8d38691674211f2eab63a9b7729 (patch)
tree51eee2f2bf2bf045075633473dbc9176af3ec59d /src
parentd10fca5ec99de7f1e9b5cc857f5cc629a6ee0126 (diff)
Set draw size to window size after fullscreen unset
Diffstat (limited to 'src')
-rw-r--r--src/Body.cpp2
-rw-r--r--src/QuickMedia.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index fd279a8..2579d64 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -16,7 +16,7 @@ namespace QuickMedia {
font(font),
bold_font(bold_font),
progress_text("", *font, 14),
- author_text("", *bold_font, 14),
+ author_text("", *bold_font, 16),
replies_text("", *font, 14),
selected_item(0),
draw_thumbnails(false),
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 417d4ea..71ba2a5 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1633,6 +1633,10 @@ namespace QuickMedia {
window.setMouseCursorVisible(true);
window_set_fullscreen(disp, window.getSystemHandle(), WindowFullscreenState::UNSET);
+
+ auto window_size_u = window.getSize();
+ window_size.x = window_size_u.x;
+ window_size.y = window_size_u.y;
}
enum class TrackMediaType {