windowing/windowserver/tdynamicres/src/wsdynamicresbasic.cpp
changeset 45 36b2e23a8629
parent 0 5d03bc08d59c
equal deleted inserted replaced
36:01a6848ebfd7 45:36b2e23a8629
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 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 "Eclipse Public 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.eclipse.org/legal/epl-v10.html".
   272 	TDisplayConfiguration config;
   272 	TDisplayConfiguration config;
   273 	TInt goodRes=0;
   273 	TInt goodRes=0;
   274 	if (resolutionList1[goodRes].iPixelSize==TSize())
   274 	if (resolutionList1[goodRes].iPixelSize==TSize())
   275 		{
   275 		{
   276 		goodRes++;
   276 		goodRes++;
   277 		ASSERT_TRUE(resolutions>goodRes && "First res was blank, and no more to choose!");
   277 		ASSERT_TRUE(resolutions>goodRes);		//First res was blank, and no more to choose!
   278 		}
   278 		}
   279 	config.SetResolution(resolutionList1[goodRes].iPixelSize);
   279 	config.SetResolution(resolutionList1[goodRes].iPixelSize);
   280 	error=interface->SetConfiguration(config);
   280 	error=interface->SetConfiguration(config);
   281 	ASSERT_EQUALS(error,KErrNone);
   281 	ASSERT_EQUALS(error,KErrNone);
   282 	resolutionList1.Close();
   282 	resolutionList1.Close();