diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-19 21:06:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 10:11:59 +0000 |
commit | 8f29ee6c293a6d72b3cf0b6b735c90ba91fc5607 (patch) | |
tree | 5cf827caee6eae504a41b49e328fee39cef9376c /vcl/source/image | |
parent | 60792b45dd5038d570c7880b7e86b666424f765d (diff) |
Images no longer loaded from resource files
Change-Id: I7155a2c8280b9f511402b908f06470dec419b336
Diffstat (limited to 'vcl/source/image')
-rw-r--r-- | vcl/source/image/Image.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vcl/source/image/Image.cxx b/vcl/source/image/Image.cxx index 516883c8f170..bc663fbbc525 100644 --- a/vcl/source/image/Image.cxx +++ b/vcl/source/image/Image.cxx @@ -44,29 +44,6 @@ Image::Image() { } -Image::Image( const ResId& rResId ) -{ - rResId.SetRT( RSC_IMAGE ); - - ResMgr* pResMgr = rResId.GetResMgr(); - if( pResMgr && pResMgr->GetResource( rResId ) ) - { - pResMgr->Increment( sizeof( RSHEADER_TYPE ) ); - - BitmapEx aBmpEx; - RscImageFlags nObjMask = (RscImageFlags)pResMgr->ReadLong(); - - if( nObjMask & RscImageFlags::ImageBitmap ) - { - aBmpEx = BitmapEx( ResId( static_cast<RSHEADER_TYPE*>(pResMgr->GetClass()), *pResMgr ) ); - pResMgr->Increment( ResMgr::GetObjSize( static_cast<RSHEADER_TYPE*>(pResMgr->GetClass()) ) ); - } - - if( ! aBmpEx.IsEmpty() ) - ImplInit( aBmpEx ); - } -} - Image::Image(const BitmapEx& rBitmapEx) { ImplInit(rBitmapEx); |