ui/uiengine/medialistwrapper/src/glxmlwrapper_p.cpp
changeset 36 6481344a6d67
parent 33 1ee2af37811f
child 44 aa2fa096cbfb
equal deleted inserted replaced
33:1ee2af37811f 36:6481344a6d67
   889 //
   889 //
   890 CFbsBitmap* GlxMLWrapperPrivate::RetrieveBitmap(int aItemIndex)
   890 CFbsBitmap* GlxMLWrapperPrivate::RetrieveBitmap(int aItemIndex)
   891     {
   891     {
   892     GLX_LOG_INFO1("GlxMLWrapperPrivate::RetrieveBitmap %d",aItemIndex);
   892     GLX_LOG_INFO1("GlxMLWrapperPrivate::RetrieveBitmap %d",aItemIndex);
   893     const TGlxMedia& item = iMediaList->Item( aItemIndex );
   893     const TGlxMedia& item = iMediaList->Item( aItemIndex );
       
   894     TInt height =KFullScreenTNPTWidth; // default as portrait
       
   895     TInt width =KFullScreenTNPTHeight;
       
   896     if (iPtFsContextActivated )
       
   897         {
       
   898         GLX_LOG_INFO("GlxMLWrapperPrivate::RetrieveBitmap - CGlxHdmi :PT");
       
   899         width = KFullScreenTNPTWidth;
       
   900         height = KFullScreenTNPTHeight;
       
   901         }
       
   902     else if (iLsFsContextActivated)
       
   903         {
       
   904         GLX_LOG_INFO("GlxMLWrapperPrivate::RetrieveBitmap - CGlxHdmi :LS");
       
   905         width = KFullScreenTNLSWidth;
       
   906         height = KFullScreenTNLSHeight;
       
   907         }
   894     TMPXAttribute fsTnAttrib= TMPXAttribute(KGlxMediaIdThumbnail,
   908     TMPXAttribute fsTnAttrib= TMPXAttribute(KGlxMediaIdThumbnail,
   895                 GlxFullThumbnailAttributeId(ETrue, KFullScreenTNPTWidth,
   909                 GlxFullThumbnailAttributeId(ETrue, width, height));
   896                         KFullScreenTNPTHeight));
       
   897     const CGlxThumbnailAttribute* fsTnValue = item.ThumbnailAttribute(
   910     const CGlxThumbnailAttribute* fsTnValue = item.ThumbnailAttribute(
   898             fsTnAttrib);
   911             fsTnAttrib);
   899     if (fsTnValue)
   912     if (fsTnValue)
   900         {
   913         {
   901         GLX_LOG_INFO("GlxMLWrapperPrivate::RetrieveBitmap - returning FS bitmap");
   914         GLX_LOG_INFO("GlxMLWrapperPrivate::RetrieveBitmap - returning FS bitmap");