From 9bb51c1c6a9da3d5aaf535dbca3022364042f026 Mon Sep 17 00:00:00 2001 From: "wonyoung12.lee" Date: Tue, 21 May 2013 17:52:45 +0900 Subject: [PATCH] Modify for bitmap covered the outline and flashing after updatelist Change-Id: I4d488b9e7c9b42ed47d65157c494be5ee66e81ab Signed-off-by: wonyoung12.lee --- src/ui/controls/FUiCtrl_IconListItem.cpp | 9 +++++---- src/ui/controls/FUiCtrl_IconListPresenter.cpp | 2 -- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ui/controls/FUiCtrl_IconListItem.cpp b/src/ui/controls/FUiCtrl_IconListItem.cpp index 1c459ad..8e179e3 100644 --- a/src/ui/controls/FUiCtrl_IconListItem.cpp +++ b/src/ui/controls/FUiCtrl_IconListItem.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -339,10 +340,10 @@ _IconListItem::DrawBitmap(Canvas& canvas, Bitmap& bitmap, bool isFocused, float float borderWidth = __pProperty->GetDropShadowBorderWidth(); if (__pProperty->GetBorderStyle() == ICON_LIST_VIEW_ITEM_BORDER_STYLE_SHADOW || __pProperty->GetBorderStyle() == ICON_LIST_VIEW_ITEM_BORDER_STYLE_OUTLINE) { - rect.x += 1.0f; - rect.y += 1.0f; - rect.width -= borderWidth; - rect.height -= borderWidth; + rect.x += CoordinateSystem::ConvertToLogicalX(1.0f); + rect.y += CoordinateSystem::ConvertToLogicalY(1.0f); + rect.width -= CoordinateSystem::ConvertToLogicalX(borderWidth); + rect.height -= CoordinateSystem::ConvertToLogicalY(borderWidth); } float width = rect.width; diff --git a/src/ui/controls/FUiCtrl_IconListPresenter.cpp b/src/ui/controls/FUiCtrl_IconListPresenter.cpp index b546019..0d9a128 100644 --- a/src/ui/controls/FUiCtrl_IconListPresenter.cpp +++ b/src/ui/controls/FUiCtrl_IconListPresenter.cpp @@ -977,9 +977,7 @@ _IconListPresenter::UpdateList(void) __listStatusChanged = true; AddGroupAndRestoreItem(true); - __pIconListView->Draw(); - __pIconListView->Show(); return E_SUCCESS; } -- 2.7.4