Merge pull request #4864 from TheUbuntuGuy/master
Scale cover art to the current monitor, not the entire virtual screen
This commit is contained in:
commit
02d6a3369b
@ -217,8 +217,9 @@ void AlbumCoverChoiceController::ShowCover(const Song& song) {
|
|||||||
// if the cover is larger than the screen, resize the window
|
// if the cover is larger than the screen, resize the window
|
||||||
// 85% seems to be enough to account for title bar and taskbar etc.
|
// 85% seems to be enough to account for title bar and taskbar etc.
|
||||||
QDesktopWidget desktop;
|
QDesktopWidget desktop;
|
||||||
int desktop_height = desktop.geometry().height();
|
int current_screen = desktop.screenNumber(this);
|
||||||
int desktop_width = desktop.geometry().width();
|
int desktop_height = desktop.screenGeometry(current_screen).height();
|
||||||
|
int desktop_width = desktop.screenGeometry(current_screen).width();
|
||||||
|
|
||||||
// resize differently if monitor is in portrait mode
|
// resize differently if monitor is in portrait mode
|
||||||
if (desktop_width < desktop_height) {
|
if (desktop_width < desktop_height) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user