summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-28 18:53:13 +0900
committerJan Holesovsky <kendy@collabora.com>2015-05-29 20:16:51 +0200
commit1597c8cae7230195d9b20be727f2cc6b2c6458b0 (patch)
treed293bbd2e35f22d0c33b161655a02c7122d541ac /vcl
parent21a0496a5fe7bd105e9d48b43fc82c30dad42a65 (diff)
fix calls to RenderContext
Change-Id: I5ef4b740a9c62d5cc7a2126686df4fd86a4b3492 Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/edit.cxx2
-rw-r--r--vcl/source/control/lstbox.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 3c211b7949e1..95267f962c77 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -551,7 +551,7 @@ void Edit::ImplRepaint(vcl::RenderContext& rRenderContext, bool bLayout)
rRenderContext.DrawRect(Rectangle(aPos, Size(GetOutputSizePixel().Width() - 2 * mnXOffset, GetOutputSizePixel().Height())));
rRenderContext.Pop();
- SetTextFillColor(GetControlBackground());
+ rRenderContext.SetTextFillColor(GetControlBackground());
}
else if (IsPaintTransparent() || ImplUseNativeBorder(rRenderContext, GetStyle()))
rRenderContext.SetTextFillColor();
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index fe430ea37b37..f26a2078cab5 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -555,7 +555,7 @@ void ListBox::DataChanged( const DataChangedEvent& rDCEvt )
if ( mpImplWin )
{
mpImplWin->SetSettings( GetSettings() ); // If not yet set...
- mpImplWin->ApplySettings(*this);
+ mpImplWin->ApplySettings(*mpImplWin);
mpBtn->SetSettings( GetSettings() );
ImplInitDropDownButton( mpBtn );