idlehomescreen/xmluirendering/renderingplugins/xnclockfactory/src/xnclockface.cpp
equal
deleted
inserted
replaced
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 { |