diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-17 16:25:41 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-17 16:25:41 +0200 |
commit | 42de171702b8a52a01661a25db56dde44f3754d6 (patch) | |
tree | 60d02dfe50cfaa6586e9386b32c6a3632d2e8fc4 /src | |
parent | fa0c57f3258f4998dd4b2f441656c0c8a892139b (diff) |
Fallback to screen size if fail to get monitor size
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 14ddba1..ea77bff 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -157,7 +157,7 @@ static int get_largest_monitor_height(Display *display) { }); if(max_height == 0) - return 720; + return DefaultScreenOfDisplay(display)->height; return std::max(max_height, 480); } |