equal
deleted
inserted
replaced
47 CDrawXxxBppBitmap::iScanLineWords = iHelper.BytesPerScanline() / 4; |
47 CDrawXxxBppBitmap::iScanLineWords = iHelper.BytesPerScanline() / 4; |
48 if (CDrawXxxBppBitmap::iScanLineWords==0) |
48 if (CDrawXxxBppBitmap::iScanLineWords==0) |
49 { //Note: This will cause WServ startup to fail. WServ only accepts KErrNotSupported |
49 { //Note: This will cause WServ startup to fail. WServ only accepts KErrNotSupported |
50 return KErrHardwareNotAvailable; |
50 return KErrHardwareNotAvailable; |
51 } |
51 } |
52 TInt ret = CDrawXxxBppBitmap::Construct(aSize); |
52 TInt ret = CDrawXxxBppBitmap::Construct(aSize, CDrawXxxBppBitmap::iScanLineWords << 2); |
53 if (ret == KErrNone) |
53 if (ret == KErrNone) |
54 { |
54 { |
55 CDrawXxxBppBitmap::iBits = (TUint32*)iHelper.AddressFirstPixel(); |
55 CDrawXxxBppBitmap::iBits = (TUint32*)iHelper.AddressFirstPixel(); |
56 if (CDrawXxxBppBitmap::iBits==NULL) |
56 if (CDrawXxxBppBitmap::iBits==NULL) |
57 { //Note: This will cause WServ startup to fail. WServ only accepts KErrNotSupported |
57 { //Note: This will cause WServ startup to fail. WServ only accepts KErrNotSupported |