diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-09 16:40:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-10 08:42:17 +0200 |
commit | c748debd8f1c6a8c0cd202013edebd74d608ada1 (patch) | |
tree | c23fa49f1d1041407711f64667a3f6eb9e9c289c /vcl/osx | |
parent | 9c7222c11c331ecd1562e963e78ab85be75b8e49 (diff) |
convert WINDOWSTATE_STATE to scoped enum
Change-Id: I5448c7e46042850f18970c7613ec5a37df57bce7
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/salframe.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index 0d535dc636c9..2e4681508829 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -551,7 +551,7 @@ void AquaSalFrame::SetWindowState( const SalFrameState* pState ) aStateRect = [NSWindow frameRectForContentRect: aStateRect styleMask: mnStyleMask]; [mpNSWindow setFrame: aStateRect display: NO]; - if( pState->mnState == WINDOWSTATE_STATE_MINIMIZED ) + if( pState->mnState == WindowStateState::Minimized ) [mpNSWindow miniaturize: NSApp]; else if( [mpNSWindow isMiniaturized] ) [mpNSWindow deminiaturize: NSApp]; @@ -560,7 +560,7 @@ void AquaSalFrame::SetWindowState( const SalFrameState* pState ) the program specified one), but comes closest since the default behavior is "maximized" if the user did not intervene */ - if( pState->mnState == WINDOWSTATE_STATE_MAXIMIZED ) + if( pState->mnState == WindowStateState::Maximized ) { if(! [mpNSWindow isZoomed]) [mpNSWindow zoom: NSApp]; @@ -624,11 +624,11 @@ bool AquaSalFrame::GetWindowState( SalFrameState* pState ) pState->mnHeight = long(aStateRect.size.height); if( [mpNSWindow isMiniaturized] ) - pState->mnState = WINDOWSTATE_STATE_MINIMIZED; + pState->mnState = WindowStateState::Minimized; else if( ! [mpNSWindow isZoomed] ) - pState->mnState = WINDOWSTATE_STATE_NORMAL; + pState->mnState = WindowStateState::Normal; else - pState->mnState = WINDOWSTATE_STATE_MAXIMIZED; + pState->mnState = WindowStateState::Maximized; return TRUE; } |