#5186 Reorder some functions call to make it clear

This commit is contained in:
Jerry (Xinyu Hou) 2016-10-28 06:00:11 -07:00
parent c2372bc9a8
commit 0d4fd6dcef
1 changed files with 2 additions and 4 deletions

View File

@ -1590,13 +1590,11 @@ MSWindowsScreen::updateScreenShape()
// get shape and center
m_w = GetSystemMetrics(SM_CXVIRTUALSCREEN);
m_h = GetSystemMetrics(SM_CYVIRTUALSCREEN);
m_x = GetSystemMetrics(SM_XVIRTUALSCREEN);
m_y = GetSystemMetrics(SM_YVIRTUALSCREEN);
m_xCenter = GetSystemMetrics(SM_CXSCREEN) >> 1;
m_yCenter = GetSystemMetrics(SM_CYSCREEN) >> 1;
// get position
m_x = GetSystemMetrics(SM_XVIRTUALSCREEN);
m_y = GetSystemMetrics(SM_YVIRTUALSCREEN);
// check for multiple monitors
m_multimon = (m_w != GetSystemMetrics(SM_CXSCREEN) ||
m_h != GetSystemMetrics(SM_CYSCREEN));