javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtscreen.cpp
branchRCL_3
changeset 60 6c158198356e
parent 24 0fd27995241b
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
   387 // From MSwtScreen
   387 // From MSwtScreen
   388 // ---------------------------------------------------------------------------
   388 // ---------------------------------------------------------------------------
   389 //
   389 //
   390 void CSwtScreen::SetOrientationL(TInt aOrientation)
   390 void CSwtScreen::SetOrientationL(TInt aOrientation)
   391 {
   391 {
       
   392     // Checks whether some component fixed the screen orientation
       
   393     if (iDisplay.UiUtils().IsScreenOrientationFixed())
       
   394     {
       
   395         User::Leave(ESwtErrorCannotSetSelection);
       
   396     }
       
   397 
   392     iOrientation = aOrientation;
   398     iOrientation = aOrientation;
   393     if (IsScreenOn())
   399     if (IsScreenOn())
   394     {
   400     {
   395         // Do not change instruction order!
   401         // Do not change instruction order!
   396         iOrientationState = EOrientationSet;
   402         iOrientationState = EOrientationSet;