mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
Remove unused parameter
This commit is contained in:
@@ -531,8 +531,7 @@ class DeferredSessionCleanupTask : public QRunnable
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void Session::getWindowDimensions(bool fullScreen,
|
void Session::getWindowDimensions(int& x, int& y,
|
||||||
int& x, int& y,
|
|
||||||
int& width, int& height)
|
int& width, int& height)
|
||||||
{
|
{
|
||||||
int displayIndex = 0;
|
int displayIndex = 0;
|
||||||
@@ -653,7 +652,7 @@ void Session::toggleFullscreen()
|
|||||||
SDL_SetWindowResizable(m_Window, SDL_TRUE);
|
SDL_SetWindowResizable(m_Window, SDL_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
getWindowDimensions(fullScreen, x, y, width, height);
|
getWindowDimensions(x, y, width, height);
|
||||||
|
|
||||||
SDL_SetWindowPosition(m_Window, x, y);
|
SDL_SetWindowPosition(m_Window, x, y);
|
||||||
SDL_SetWindowSize(m_Window, width, height);
|
SDL_SetWindowSize(m_Window, width, height);
|
||||||
@@ -765,8 +764,7 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
|||||||
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||||
|
|
||||||
int x, y, width, height;
|
int x, y, width, height;
|
||||||
getWindowDimensions(m_Preferences.windowMode != StreamingPreferences::WM_WINDOWED,
|
getWindowDimensions(x, y, width, height);
|
||||||
x, y, width, height);
|
|
||||||
|
|
||||||
m_Window = SDL_CreateWindow("Moonlight",
|
m_Window = SDL_CreateWindow("Moonlight",
|
||||||
x,
|
x,
|
||||||
@@ -787,7 +785,7 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
|||||||
// again after creating a window to allow it to account
|
// again after creating a window to allow it to account
|
||||||
// for window chrome size.
|
// for window chrome size.
|
||||||
if (m_Preferences.windowMode == StreamingPreferences::WM_WINDOWED) {
|
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_SetWindowPosition(m_Window, x, y);
|
||||||
SDL_SetWindowSize(m_Window, width, height);
|
SDL_SetWindowSize(m_Window, width, height);
|
||||||
|
|||||||
@@ -51,8 +51,7 @@ private:
|
|||||||
|
|
||||||
bool testAudio(int audioConfiguration);
|
bool testAudio(int audioConfiguration);
|
||||||
|
|
||||||
void getWindowDimensions(bool fullScreen,
|
void getWindowDimensions(int& x, int& y,
|
||||||
int& x, int& y,
|
|
||||||
int& width, int& height);
|
int& width, int& height);
|
||||||
|
|
||||||
void toggleFullscreen();
|
void toggleFullscreen();
|
||||||
|
|||||||
Reference in New Issue
Block a user