diff options
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 4cfffbb49128..a7da050db0c7 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2494,6 +2494,10 @@ void Window::Show(bool bVisible, ShowFlags nFlags) mpWindowImpl->mpFrame->GetClientSize( nOutWidth, nOutHeight ); ImplHandleResize( this, nOutWidth, nOutHeight ); } + + if (mpWindowImpl->mpFrameData->mpBuffer && mpWindowImpl->mpFrameData->mpBuffer->GetOutputSizePixel() != GetOutputSizePixel()) + // Make sure that the buffer size matches the window size, even if no resize was needed. + mpWindowImpl->mpFrameData->mpBuffer->SetOutputSizePixel(GetOutputSizePixel()); } if( aDogTag.IsDead() ) |