diff options
author | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2012-07-09 10:55:42 +0400 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-25 12:50:38 +0100 |
commit | 0714d191e7273c3b32837834f9a37867b81cb78a (patch) | |
tree | 9996ccbede17cb03935c48728dce7d892d0eab3e /vcl | |
parent | 64124314a11493849e50c27ad210378743f39056 (diff) |
Enable native background rendering for ToolBox
Change-Id: I575dc3a4e15c88d4c61da8195ed9df6c55e5cb66
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 9d3e1155582c..75d0def6077d 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -543,6 +543,12 @@ void ToolBox::ImplDrawBackground( ToolBox* pThis, const Rectangle &rRect ) // execute pending paint requests ImplCheckUpdate( pThis ); + if ( pThis->IsNativeControlSupported(CTRL_WINDOW_BACKGROUND,PART_ENTIRE_CONTROL) && + pThis->DrawNativeControl(CTRL_WINDOW_BACKGROUND,PART_ENTIRE_CONTROL,rRect, + CTRL_STATE_ENABLED,ImplControlValue(0),rtl::OUString()) + ) + return; + ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis ); sal_Bool bIsInPopupMode = pThis->ImplIsInPopupMode(); |