1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Remove the no longer used 4th. argument (rendering backend)

This commit is contained in:
Elias Steurer 2019-09-12 21:03:58 +02:00
parent 9073bf66d7
commit b211a3eb23

View File

@ -51,8 +51,8 @@ int main(int argc, char* argv[])
return app.exec();
}
// 6 parameter + 1 OS working directory default paramter
if (argumentList.length() != 7) {
// 5 parameter + 1 OS working directory default paramter
if (argumentList.length() != 6) {
return -3;
}
@ -84,11 +84,12 @@ int main(int argc, char* argv[])
}
}
// Args: which monitor, (2) path to project, (3)wallpaper secret to identify the connected socket, (5) volume, (6) fillmode
// Args: which monitor, (2) path to project, (3)wallpaper secret to identify the connected socket, (4) volume, (5) fillmode
// See screenplay.h @ScreenPlayWallpaper constructor how the args get created
qDebug() << argumentList;
#if defined(Q_OS_WIN)
WinWindow window(list, argumentList.at(2), argumentList.at(3), argumentList.at(5), argumentList.at(6));
WinWindow window(list, argumentList.at(2), argumentList.at(3), argumentList.at(4), argumentList.at(5));
QObject::connect(&sdk, &ScreenPlaySDK::sdkDisconnected, &window, &WinWindow::destroyThis);
QObject::connect(&sdk, &ScreenPlaySDK::incommingMessage, &window, &WinWindow::messageReceived);
#endif