First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 #include <pixelformats.h>
20 void Panic(TStdPluginPanic aPanic)
22 _LIT(KStdPanicCategory, "WSERV-PLUGIN");
23 User::Panic(KStdPanicCategory, aPanic);
26 GLDEF_C TDisplayMode ParseDisplayMode(const TDesC& aModeName)
28 // Not using _LIT because we only want the string temporarily, not permanently on the heap.
29 if (!aModeName.CompareF(_L("Color16MAP")))
31 else if (!aModeName.CompareF(_L("Color16MA")))
33 else if (!aModeName.CompareF(_L("Color16MU")))
35 else if (!aModeName.CompareF(_L("Color64K")))
37 else if (!aModeName.CompareF(_L("Color4K")))
39 else if (!aModeName.CompareF(_L("Color256")))
41 else if (!aModeName.CompareF(_L("Color16")))
43 else if (!aModeName.CompareF(_L("Gray256")))
45 else if (!aModeName.CompareF(_L("Gray16")))
47 else if (!aModeName.CompareF(_L("Gray4")))
49 else if (!aModeName.CompareF(_L("Gray2")))