summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-08-05 11:25:02 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-08-05 11:55:00 +0200
commit968bc55adebd0158349b32a31ea341be292d8aa1 (patch)
tree095e1fae8a56343f60897601532143748ff388bc
parent403c13487c36f4200adf0986c5d11398f719cd7a (diff)
tdf#92982 vcl rendercontext: fix buffer size with empty user profile
I did not notice this before, as my user profile had a custom window size; but with an empty user profile the buffer had a 0,0 size, so the buffered result was empty, as no ImplHandleResize() was invoked. Change-Id: Ie299ad1323944941afc407dc90f2459d72885d42
-rw-r--r--vcl/source/window/window.cxx4
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() )