idlehomescreen/xmluirendering/renderingplugins/xnclockfactory/src/xnclockface.cpp
branchRCL_3
changeset 17 b8fae6b8a148
parent 12 9674c1a575e9
equal deleted inserted replaced
12:9674c1a575e9 17:b8fae6b8a148
   111 
   111 
   112     const TRgb& color( aAdapter.TextColorL() );
   112     const TRgb& color( aAdapter.TextColorL() );
   113 
   113 
   114     CXnNodePluginIf* date( aAdapter.Date() );
   114     CXnNodePluginIf* date( aAdapter.Date() );
   115 
   115 
   116     TInt ampmWidth( 0 );
       
   117 
       
   118     if( TLocale().TimeFormat() == ETime12 )
       
   119         {
       
   120         // Measure the full width of the ampm string 
       
   121         ampmWidth = AknBidiTextUtils::MeasureTextBoundsWidth( *ampmFont, ampm, 
       
   122             CFont::TMeasureTextInput::EFVisualOrder );
       
   123         }
       
   124 
       
   125 
       
   126     const TInt deltaHeight( aRect.Height() - clockFont->TextPaneHeight() );
   116     const TInt deltaHeight( aRect.Height() - clockFont->TextPaneHeight() );
   127     TInt offset( clockFont->TextPaneTopToBaseline() + deltaHeight / 2 );
   117     TInt offset( clockFont->TextPaneTopToBaseline() + deltaHeight / 2 );
   128 
   118 
   129     if( date )
   119     if( date )
   130         {
   120         {