From 0d68faf40ce0d7bdc660a4cd8a7d84c86d86f3f9 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 5 Sep 2018 15:45:36 -0700 Subject: [PATCH] Remove unused parameter --- app/streaming/session.cpp | 10 ++++------ app/streaming/session.hpp | 3 +-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 9be99bd0..def15bec 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -531,8 +531,7 @@ class DeferredSessionCleanupTask : public QRunnable } }; -void Session::getWindowDimensions(bool fullScreen, - int& x, int& y, +void Session::getWindowDimensions(int& x, int& y, int& width, int& height) { int displayIndex = 0; @@ -653,7 +652,7 @@ void Session::toggleFullscreen() SDL_SetWindowResizable(m_Window, SDL_TRUE); } - getWindowDimensions(fullScreen, x, y, width, height); + getWindowDimensions(x, y, width, height); SDL_SetWindowPosition(m_Window, x, y); SDL_SetWindowSize(m_Window, width, height); @@ -765,8 +764,7 @@ void Session::exec(int displayOriginX, int displayOriginY) QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents); int x, y, width, height; - getWindowDimensions(m_Preferences.windowMode != StreamingPreferences::WM_WINDOWED, - x, y, width, height); + getWindowDimensions(x, y, width, height); m_Window = SDL_CreateWindow("Moonlight", x, @@ -787,7 +785,7 @@ void Session::exec(int displayOriginX, int displayOriginY) // again after creating a window to allow it to account // for window chrome size. if (m_Preferences.windowMode == StreamingPreferences::WM_WINDOWED) { - getWindowDimensions(false, x, y, width, height); + getWindowDimensions(x, y, width, height); SDL_SetWindowPosition(m_Window, x, y); SDL_SetWindowSize(m_Window, width, height); diff --git a/app/streaming/session.hpp b/app/streaming/session.hpp index fdff0d4b..66a4c730 100644 --- a/app/streaming/session.hpp +++ b/app/streaming/session.hpp @@ -51,8 +51,7 @@ private: bool testAudio(int audioConfiguration); - void getWindowDimensions(bool fullScreen, - int& x, int& y, + void getWindowDimensions(int& x, int& y, int& width, int& height); void toggleFullscreen();