summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-07-04 15:00:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-04 20:18:47 +0200
commitf73e8c895e24fda10931ecf344a1a0dd8bcdf92c (patch)
tree1611b59edaa7d957fbe5c9ab4f543cedd5a05662 /vcl
parenta2dacae0c8acfad8a5e5a16c766ee740ec202c5e (diff)
unnecessary LogicToPixel in TabPage::Draw
we are already using logical pixels here, and DrawBitmapEx wants logical pixels Change-Id: Ia099fbfbf33349003df23a93e1183472b27dc7a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153969 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/tabpage.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index 5a83165eb1af..90abeaa25968 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -163,7 +163,6 @@ void TabPage::Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle&
void TabPage::Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags )
{
- Point aPos = pDev->LogicToPixel( rPos );
Size aSize = GetSizePixel();
Wallpaper aWallpaper = GetBackground();
@@ -175,14 +174,14 @@ void TabPage::Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags
pDev->SetLineColor();
if ( aWallpaper.IsBitmap() )
- pDev->DrawBitmapEx( aPos, aSize, aWallpaper.GetBitmap() );
+ pDev->DrawBitmapEx( rPos, aSize, aWallpaper.GetBitmap() );
else
{
if( aWallpaper.GetColor() == COL_AUTO )
pDev->SetFillColor( GetSettings().GetStyleSettings().GetDialogColor() );
else
pDev->SetFillColor( aWallpaper.GetColor() );
- pDev->DrawRect( tools::Rectangle( aPos, aSize ) );
+ pDev->DrawRect( tools::Rectangle( rPos, aSize ) );
}
pDev->Pop();