HaikuDepot: SharedBitmap, when constructed with BBitmap, return that.

This commit is contained in:
Stephan Aßmus 2013-07-31 22:33:48 +02:00
parent 0ee1699a5d
commit 2285a7451d
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ SharedBitmap::SharedBitmap(int32 resourceID)
const BBitmap*
SharedBitmap::Bitmap(Size which)
{
if (fResourceID == -1)
return fBitmap[0];
int32 index = 0;
int32 size = 16;