diff options
Diffstat (limited to 'vcl/source/window/wrkwin.cxx')
-rw-r--r-- | vcl/source/window/wrkwin.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx index 1256f258a89f..cc5bade1a18e 100644 --- a/vcl/source/window/wrkwin.cxx +++ b/vcl/source/window/wrkwin.cxx @@ -151,17 +151,16 @@ WorkWindow::~WorkWindow() // ----------------------------------------------------------------------- +void WorkWindow::ShowFullScreenMode( sal_Bool bFullScreenMode ) +{ + return ShowFullScreenMode( bFullScreenMode, GetScreenNumber()); +} + void WorkWindow::ShowFullScreenMode( sal_Bool bFullScreenMode, sal_Int32 nDisplayScreen ) { if ( !mbFullScreenMode == !bFullScreenMode ) return; - if( (nDisplayScreen < -1) - || (nDisplayScreen >= static_cast<sal_Int32>(Application::GetScreenCount()) ) ) - { - nDisplayScreen = GetScreenNumber(); - } - mbFullScreenMode = bFullScreenMode != 0; if ( !mbSysChild ) { @@ -184,6 +183,11 @@ void WorkWindow::ShowFullScreenMode( sal_Bool bFullScreenMode, sal_Int32 nDispla // ----------------------------------------------------------------------- +void WorkWindow::StartPresentationMode( sal_Bool bPresentation, sal_uInt16 nFlags ) +{ + return StartPresentationMode( bPresentation, nFlags, GetScreenNumber()); +} + void WorkWindow::StartPresentationMode( sal_Bool bPresentation, sal_uInt16 nFlags, sal_Int32 nDisplayScreen ) { if ( !bPresentation == !mbPresentationMode ) |