1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of the License "Symbian Foundation License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
54 |
54 |
55 void CTestCamera::ConstructL() |
55 void CTestCamera::ConstructL() |
56 { |
56 { |
57 |
57 |
58 TInt err; |
58 TInt err; |
59 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor16MA)); |
59 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor16M)); |
60 if (err == KErrNotSupported) |
60 if (err == KErrNotSupported) |
61 { |
61 { |
62 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor16M)); |
62 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor64K)); |
63 } |
63 } |
64 if (err == KErrNotSupported) |
64 if (err == KErrNotSupported) |
65 { |
65 { |
66 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor64K)); |
66 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor4K)); |
67 } |
67 } |
68 if (err == KErrNotSupported) |
68 if (err == KErrNotSupported) |
69 { |
69 { |
70 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor4K)); |
70 iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor256); |
71 } |
71 } |
72 if (err == KErrNotSupported) |
|
73 { |
|
74 TRAP(err, iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor256)); |
|
75 } |
|
76 if (err == KErrNotSupported) |
|
77 { |
|
78 iScreenDev = CFbsScreenDevice::NewL(_L(""),EColor16MAP); |
|
79 } |
|
80 else |
72 else |
81 { |
73 { |
82 User::LeaveIfError(err); |
74 User::LeaveIfError(err); |
83 } |
75 } |
84 |
76 |