Kaydet (Commit) 1caad856 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#80681 widget is not transparent

regression from 12dfca2e
Author: Armin Le Grand <alg@apache.org>
Date:   Mon May 14 15:16:00 2012 +0000
    Resolves: #i119307# added deletion of sw's BmpWindow control...
    ...due to the fact that graphics may be transparent

Change-Id: I7eb2ee8ed53f0ef907a4573a735c71de43b6e8d3
üst 01da41b3
...@@ -2606,8 +2606,12 @@ BmpWindow::BmpWindow(Window* pPar, WinBits nStyle) ...@@ -2606,8 +2606,12 @@ BmpWindow::BmpWindow(Window* pPar, WinBits nStyle)
, bGraphic(false) , bGraphic(false)
, bLeftAlign(false) , bLeftAlign(false)
{ {
// #i119307# use background, the graphic might have transparency SetBackground();
SetBackground(Wallpaper(Color(COL_WHITE))); SetPaintTransparent(sal_True);
// #i119307# the graphic might have transparency, set up white as the color
// to use when drawing a rectangle under the image
SetLineColor(COL_WHITE);
SetFillColor(COL_WHITE);
} }
Size BmpWindow::GetOptimalSize() const Size BmpWindow::GetOptimalSize() const
...@@ -2665,7 +2669,7 @@ void BmpWindow::Paint( const Rectangle& ) ...@@ -2665,7 +2669,7 @@ void BmpWindow::Paint( const Rectangle& )
} }
// #i119307# clear window background, the graphic might have transparency // #i119307# clear window background, the graphic might have transparency
Erase(); DrawRect(Rectangle(aPntPos, aPntSz));
if ( bGraphic ) if ( bGraphic )
aGraphic.Draw( this, aPntPos, aPntSz ); aGraphic.Draw( this, aPntPos, aPntSz );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment