diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-31 14:42:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-31 14:42:26 +0400 |
commit | 73f301c3a8a28dd25ea850a54d968fc6c4f2b83e (patch) | |
tree | d8f26b84286c7468aa3d1cc71b929e890fb59a2e /intern/ghost/intern/GHOST_SystemWin32.cpp | |
parent | 4d2efa877e305fc29121030120b7c53ae57950c4 (diff) |
add ghost function getAllDisplayDimensions, GHOST_GetAllDisplayDimensions
This returns the desktop size, not just the size of the active monitor, useful since this constrains the mouse and we dont have to detect the active monitor (which isn't so straightforward with xlib).
carbon/cocoa are TODO, they still use getMainDisplayDimensions().
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemWin32.cpp')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 50d7b372dd6..138109ce48b 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -215,6 +215,11 @@ void GHOST_SystemWin32::getMainDisplayDimensions(GHOST_TUns32& width, GHOST_TUns height = ::GetSystemMetrics(SM_CYSCREEN); } +void GHOST_SystemWin32::getAllDisplayDimensions(GHOST_TUns32& width, GHOST_TUns32& height) const +{ + width = ::GetSystemMetrics(SM_XVIRTUALSCREEN); + height = ::GetSystemMetrics(SM_YVIRTUALSCREEN); +} GHOST_IWindow *GHOST_SystemWin32::createWindow( const STR_String& title, |