diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-06-19 17:42:03 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-06-20 10:15:00 +0100 |
commit | b1b8419d34379dcca31e85ca78957fcf1656b178 (patch) | |
tree | 5df99c33bfd14e5b1f1acf7d3f3ace9f6b8e9a59 /vcl/headless | |
parent | 40e64af9e242206b9e0d01a6c8d7020fc0815520 (diff) |
tdf#92194 - fix headless masking operations in vcl.
These were causing horrible rendering artifacts for all manner of
headless rendering across Android & Online.
A very simple fix in vcl, plus a set of tests.
Change-Id: Ib261c0ea29d79ee6415e164c0b9b098efb52458b
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpvd.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/headless/svpvd.cxx b/vcl/headless/svpvd.cxx index ddd265772280..4ed3fc5909a2 100644 --- a/vcl/headless/svpvd.cxx +++ b/vcl/headless/svpvd.cxx @@ -74,8 +74,8 @@ bool SvpSalVirtualDevice::SetSizeUsingBuffer( long nNewDX, long nNewDY, if ( m_nBitCount == 1 ) { std::vector< basebmp::Color > aDevPal(2); - aDevPal.push_back( basebmp::Color( 0, 0, 0 ) ); - aDevPal.push_back( basebmp::Color( 0xff, 0xff, 0xff ) ); + aDevPal[0] = basebmp::Color( 0, 0, 0 ); + aDevPal[1] = basebmp::Color( 0xff, 0xff, 0xff ); m_aDevice = createBitmapDevice( aDevSize, bTopDown, nFormat, nStride, PaletteMemorySharedVector( new std::vector< basebmp::Color >(aDevPal) ) ); } |