summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-20 10:53:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-20 10:55:31 +0000
commite22f32b65465b5ae6e71acdf5ae4fceb379d7cb0 (patch)
tree8ca3f37740fbb6d4e3c3e3d04e9fb17b69d3e6ec /toolkit
parent8cb18eb82d08b140e36b6a06dae30f967b8444c9 (diff)
don't need intermediate Images
Change-Id: I7f36ca335ee7bf24ce634393b24a76c292c9a161
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 892391650d45..9ceaf50fc4f6 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -2387,9 +2387,9 @@ throw(css::uno::RuntimeException, std::exception)
Reference< XGraphic > xGraphic;
if (( Value >>= xGraphic ) && xGraphic.is() )
{
- Image aImage( xGraphic );
+ Graphic aImage(xGraphic);
- Wallpaper aWallpaper( aImage.GetBitmapEx());
+ Wallpaper aWallpaper(aImage.GetBitmapEx());
aWallpaper.SetStyle( WallpaperStyle::Scale );
pDialog->SetBackground( aWallpaper );
}
@@ -2548,9 +2548,9 @@ throw(css::uno::RuntimeException, std::exception)
Reference< XGraphic > xGraphic;
if (( Value >>= xGraphic ) && xGraphic.is() )
{
- Image aImage( xGraphic );
+ Graphic aImage(xGraphic);
- Wallpaper aWallpaper( aImage.GetBitmapEx());
+ Wallpaper aWallpaper(aImage.GetBitmapEx());
aWallpaper.SetStyle( WallpaperStyle::Scale );
pTabControl->SetBackground( aWallpaper );
}
@@ -2778,9 +2778,9 @@ throw(css::uno::RuntimeException, std::exception)
Reference< XGraphic > xGraphic;
if (( Value >>= xGraphic ) && xGraphic.is() )
{
- Image aImage( xGraphic );
+ Graphic aImage(xGraphic);
- Wallpaper aWallpaper( aImage.GetBitmapEx());
+ Wallpaper aWallpaper(aImage.GetBitmapEx());
aWallpaper.SetStyle( WallpaperStyle::Scale );
pTabPage->SetBackground( aWallpaper );
}