diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 13:16:51 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 22:19:32 +0100 |
commit | f4fbdf7f9c8e657cccb679b341397daabee7079b (patch) | |
tree | da5535c167fff13a0f692ee10cc47a8748e67060 /vcl/win/source | |
parent | 24f63831af82e71133fae0fc8309d1f752a402bf (diff) |
unusedcode.easy: Remove SwProtocol::Snapshot()
And all implementations. Also unused and removed:
ImplCreateFromXImage()
ImplGetFrameBitmap()
Diffstat (limited to 'vcl/win/source')
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 2243e219a83b..55630a8f451a 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -2958,39 +2958,6 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings ) // ----------------------------------------------------------------------- -SalBitmap* WinSalFrame::SnapShot() -{ - WinSalBitmap* pSalBitmap = NULL; - - RECT aRect; - GetWindowRect( mhWnd, &aRect ); - - int nDX = aRect.right-aRect.left; - int nDY = aRect.bottom-aRect.top; - HDC hDC = GetWindowDC( mhWnd ); - HBITMAP hBmpBitmap = CreateCompatibleBitmap( hDC, nDX, nDY ); - HDC hBmpDC = ImplGetCachedDC( CACHED_HDC_1, hBmpBitmap ); - sal_Bool bRet; - - bRet = BitBlt( hBmpDC, 0, 0, nDX, nDY, hDC, 0, 0, SRCCOPY ) ? TRUE : FALSE; - ImplReleaseCachedDC( CACHED_HDC_1 ); - - if ( bRet ) - { - pSalBitmap = new WinSalBitmap; - - if ( !pSalBitmap->Create( hBmpBitmap, FALSE, FALSE ) ) - { - delete pSalBitmap; - pSalBitmap = NULL; - } - } - - return pSalBitmap; -} - -// ----------------------------------------------------------------------- - const SystemEnvData* WinSalFrame::GetSystemData() const { return &maSysData; |