This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5186 Reorder some functions call to make it clear

  • Loading branch information...
Jerry (Xinyu Hou)
Jerry (Xinyu Hou) committed Oct 28, 2016
1 parent c2372bc commit 0d4fd6dcef7e941fa6d916511066cf0653ca11f3
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/lib/platform/MSWindowsScreen.cpp
@@ -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));

0 comments on commit 0d4fd6d

Please sign in to comment.