Kaydet (Commit) a81027b1 authored tarafından Chris Sherlock's avatar Chris Sherlock

vcl: remove ::Bitmap as friend of OutputDevice

Change-Id: Idea0fee1ca79ae1660e89ef7038b35cf27358082
Reviewed-on: https://gerrit.libreoffice.org/13013Reviewed-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
Tested-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
üst 186d021c
...@@ -255,7 +255,6 @@ extern const sal_uLong nVCLLut[ 256 ]; ...@@ -255,7 +255,6 @@ extern const sal_uLong nVCLLut[ 256 ];
class VCL_DLLPUBLIC OutputDevice: private boost::noncopyable class VCL_DLLPUBLIC OutputDevice: private boost::noncopyable
{ {
friend class ::Bitmap;
friend class ImplImageBmp; friend class ImplImageBmp;
friend class Printer; friend class Printer;
friend class System; friend class System;
......
...@@ -1745,11 +1745,13 @@ Bitmap Bitmap::CreateDisplayBitmap( OutputDevice* pDisplay ) ...@@ -1745,11 +1745,13 @@ Bitmap Bitmap::CreateDisplayBitmap( OutputDevice* pDisplay )
{ {
Bitmap aDispBmp( *this ); Bitmap aDispBmp( *this );
if( mpImpBmp && ( pDisplay->mpGraphics || pDisplay->AcquireGraphics() ) ) SalGraphics* pDispGraphics = pDisplay->GetGraphics();
if( mpImpBmp && pDispGraphics )
{ {
ImpBitmap* pImpDispBmp = new ImpBitmap; ImpBitmap* pImpDispBmp = new ImpBitmap;
if( pImpDispBmp->ImplCreate( *mpImpBmp, pDisplay->mpGraphics ) ) if( pImpDispBmp->ImplCreate( *mpImpBmp, pDispGraphics ) )
aDispBmp.ImplSetImpBitmap( pImpDispBmp ); aDispBmp.ImplSetImpBitmap( pImpDispBmp );
else else
delete pImpDispBmp; delete pImpDispBmp;
......
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