graphicsdeviceinterface/screendriver/sgeneric/scdraw.inl
branchRCL_3
changeset 18 5e30ef2e26cb
parent 0 5d03bc08d59c
child 70 5e51caaeeb72
equal deleted inserted replaced
11:fed1595b188e 18:5e30ef2e26cb
    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