|
|
@ -430,6 +430,9 @@ HRESULT WindowImpl::SetWindowState(AvnWindowState state) { |
|
|
START_COM_CALL; |
|
|
START_COM_CALL; |
|
|
|
|
|
|
|
|
@autoreleasepool { |
|
|
@autoreleasepool { |
|
|
|
|
|
auto currentState = _actualWindowState; |
|
|
|
|
|
_lastWindowState = state; |
|
|
|
|
|
|
|
|
if (Window == nullptr) { |
|
|
if (Window == nullptr) { |
|
|
return S_OK; |
|
|
return S_OK; |
|
|
} |
|
|
} |
|
|
@ -440,9 +443,6 @@ HRESULT WindowImpl::SetWindowState(AvnWindowState state) { |
|
|
|
|
|
|
|
|
_inSetWindowState = true; |
|
|
_inSetWindowState = true; |
|
|
|
|
|
|
|
|
auto currentState = _actualWindowState; |
|
|
|
|
|
_lastWindowState = state; |
|
|
|
|
|
|
|
|
|
|
|
if (currentState == Normal) { |
|
|
if (currentState == Normal) { |
|
|
_preZoomSize = [Window frame]; |
|
|
_preZoomSize = [Window frame]; |
|
|
} |
|
|
} |
|
|
|