textinput/peninputcommonctrls/src/peninputselectionlist/peninputselectionlist.cpp
equal
deleted
inserted
replaced
169 |
169 |
170 if (bmpid != KInvalidBmp) |
170 if (bmpid != KInvalidBmp) |
171 { |
171 { |
172 if (maskid != KInvalidBmp) |
172 if (maskid != KInvalidBmp) |
173 { |
173 { |
174 AknsUtils::CreateIconL(AknsUtils::SkinInstance(), |
174 AknsUtils::CreateIconL(UiLayout()->SkinInstance(), |
175 id, |
175 id, |
176 bmp, |
176 bmp, |
177 maskbmp, |
177 maskbmp, |
178 bmpFileName, |
178 bmpFileName, |
179 bmpid, |
179 bmpid, |
181 |
181 |
182 AknIconUtils::SetSize(maskbmp, iItemSize, EAspectRatioNotPreserved); |
182 AknIconUtils::SetSize(maskbmp, iItemSize, EAspectRatioNotPreserved); |
183 } |
183 } |
184 else |
184 else |
185 { |
185 { |
186 AknsUtils::CreateIconL(AknsUtils::SkinInstance(), |
186 AknsUtils::CreateIconL(UiLayout()->SkinInstance(), |
187 id, |
187 id, |
188 bmp, |
188 bmp, |
189 bmpFileName, |
189 bmpFileName, |
190 bmpid); |
190 bmpid); |
191 } |
191 } |
369 |
369 |
370 // ----- draw bitmaps ----- |
370 // ----- draw bitmaps ----- |
371 gc->Activate(BitmapDevice()); |
371 gc->Activate(BitmapDevice()); |
372 |
372 |
373 // draw frame |
373 // draw frame |
374 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
374 MAknsSkinInstance* skin = UiLayout()->SkinInstance(); |
375 |
375 |
376 TRect outerRect; |
376 TRect outerRect; |
377 TRect innerRect; |
377 TRect innerRect; |
378 CalculateFrameRects( iItemList[aItemIndex].iRect, outerRect, innerRect); |
378 CalculateFrameRects( iItemList[aItemIndex].iRect, outerRect, innerRect); |
379 |
379 |