equal
deleted
inserted
replaced
375 TRect innerrect = rect; |
375 TRect innerrect = rect; |
376 innerrect.Shrink( KDefaultKeyMargin, KDefaultKeyMargin ); |
376 innerrect.Shrink( KDefaultKeyMargin, KDefaultKeyMargin ); |
377 TBool bHasDrawn = EFalse; |
377 TBool bHasDrawn = EFalse; |
378 if(UiLayout()->NotDrawToLayoutDevice()) |
378 if(UiLayout()->NotDrawToLayoutDevice()) |
379 { |
379 { |
380 TBool ret = iKeyboard->PrepareKeyBmp(iKeyboard->NormalKeyBmp(), |
380 /*TBool ret = iKeyboard->PrepareKeyBmp(iKeyboard->NormalKeyBmp(), |
381 iKeyboard->NormalKeyDev(), |
381 iKeyboard->NormalKeyDev(), |
382 rect,innerrect, |
382 rect,innerrect, |
383 iKeyboard->KeySkinId(EKeyBmpNormal), |
383 iKeyboard->KeySkinId(EKeyBmpNormal), |
384 KAknsIIDDefault,Rect()); |
384 KAknsIIDDefault,Rect());*/ |
|
385 TBool ret = iKeyboard->PrepareNormalKeyBmp(rect,innerrect,Rect()); |
385 if(ret) |
386 if(ret) |
386 { |
387 { |
387 gc->BitBlt(rect.iTl,iKeyboard->NormalKeyBmp()); |
388 gc->BitBlt(rect.iTl,iKeyboard->NormalKeyBmp()); |
388 bHasDrawn = ETrue; |
389 bHasDrawn = ETrue; |
389 } |
390 } |
500 |
501 |
501 innerrect.Shrink( KDefaultKeyMargin, KDefaultKeyMargin ); |
502 innerrect.Shrink( KDefaultKeyMargin, KDefaultKeyMargin ); |
502 TBool bHasDrawn = EFalse; |
503 TBool bHasDrawn = EFalse; |
503 if(UiLayout()->NotDrawToLayoutDevice()) |
504 if(UiLayout()->NotDrawToLayoutDevice()) |
504 { |
505 { |
505 TBool ret = iKeyboard->PrepareKeyBmp(iKeyboard->HighightKeyBmp(), |
506 /*TBool ret = iKeyboard->PrepareKeyBmp(iKeyboard->HighightKeyBmp(), |
506 iKeyboard->HighlightKeyDev(), |
507 iKeyboard->HighlightKeyDev(), |
507 rect,innerrect, |
508 rect,innerrect, |
508 iKeyboard->KeySkinId(EKeyBmpHighlight), |
509 iKeyboard->KeySkinId(EKeyBmpHighlight), |
509 KAknsIIDDefault,Rect()); |
510 KAknsIIDDefault,Rect());*/ |
|
511 TBool ret = iKeyboard->PrepareHighlightKeyBmp(rect,innerrect,Rect()); |
510 if(ret) |
512 if(ret) |
511 { |
513 { |
512 gc->BitBlt(rect.iTl,iKeyboard->HighightKeyBmp()); |
514 gc->BitBlt(rect.iTl,iKeyboard->HighightKeyBmp()); |
513 bHasDrawn = ETrue; |
515 bHasDrawn = ETrue; |
514 } |
516 } |