mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
parent
e2296deb1a
commit
258f9d77aa
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
@ -235,9 +235,9 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (x != -1 && y != -1)
|
if (x != -1 && y != -1)
|
||||||
{
|
{
|
||||||
if ( (screensize.width()-x) < w || (screensize.height()-y) < h)
|
if ( !app.screenAt(QPoint(x,y)) || !app.screenAt(QPoint(x+w,y+h)) )
|
||||||
{
|
{
|
||||||
qDebug() << "Not restoring saved window position as it falls outside of primary screen";
|
qDebug() << "Not restoring saved window position as it falls outside any currently attached screen";
|
||||||
x = y = -1;
|
x = y = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue