2.5
authorTon Roosendaal <ton@blender.org>
Fri, 2 Jan 2009 10:58:30 +0000 (10:58 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 2 Jan 2009 10:58:30 +0000 (10:58 +0000)
Bugfix in OSX ghost!
The GHOST_TWindowState was set to 'invisble' always... which is a
state now handled correctly in Blender. It caused the window to not
refresh when resizing.

intern/ghost/intern/GHOST_WindowCarbon.cpp

index 68cd03026d8e53e4806c4ba753da837bf9360be7..ba094501fe533642ea0704cb3ebd33fc6de5bd5f 100644 (file)
@@ -326,7 +326,7 @@ GHOST_TWindowState GHOST_WindowCarbon::getState() const
 {
        GHOST_ASSERT(getValid(), "GHOST_WindowCarbon::getState(): window invalid")
        GHOST_TWindowState state;
-       if (::IsWindowVisible(m_windowRef)) {
+       if (::IsWindowVisible(m_windowRef) == false) {
                state = GHOST_kWindowStateMinimized;
        }
        else if (::IsWindowInStandardState(m_windowRef, nil, nil)) {