Avoided duplicate logging of screen size on win32.

This commit is contained in:
crs 2004-05-15 19:43:33 +00:00
parent d9387dbed7
commit 5a990691ca
1 changed files with 2 additions and 1 deletions

View File

@ -1168,6 +1168,8 @@ CMSWindowsScreen::onDisplayChange()
// send new screen info // send new screen info
sendEvent(getShapeChangedEvent()); sendEvent(getShapeChangedEvent());
LOG((CLOG_DEBUG "screen shape: %d,%d %dx%d %s", m_x, m_y, m_w, m_h, m_multimon ? "(multi-monitor)" : ""));
} }
return true; return true;
@ -1259,7 +1261,6 @@ CMSWindowsScreen::updateScreenShape()
// check for multiple monitors // check for multiple monitors
m_multimon = (m_w != GetSystemMetrics(SM_CXSCREEN) || m_multimon = (m_w != GetSystemMetrics(SM_CXSCREEN) ||
m_h != GetSystemMetrics(SM_CYSCREEN)); m_h != GetSystemMetrics(SM_CYSCREEN));
LOG((CLOG_DEBUG "screen shape: %d,%d %dx%d %s", m_x, m_y, m_w, m_h, m_multimon ? "(multi-monitor)" : ""));
// tell the desks // tell the desks
m_desks->setShape(m_x, m_y, m_w, m_h, m_xCenter, m_yCenter, m_multimon); m_desks->setShape(m_x, m_y, m_w, m_h, m_xCenter, m_yCenter, m_multimon);