From: youseong.ji Date: Wed, 12 Jun 2013 01:29:09 +0000 (+0900) Subject: Modified a drawing logic of bitmap on _TableViewItem X-Git-Tag: submit/tizen_2.2/20130714.153149~531^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e97a1c8bb9d3c9d75bcbf4b73ef7f1c35f87d90e;p=framework%2Fosp%2Fuifw.git Modified a drawing logic of bitmap on _TableViewItem Change-Id: I377c952b29273996bb0c5801612ec4388936894c Signed-off-by: youseong.ji --- diff --git a/src/ui/controls/FUiCtrl_TableViewItem.cpp b/src/ui/controls/FUiCtrl_TableViewItem.cpp index 129d84f..c8ae741 100644 --- a/src/ui/controls/FUiCtrl_TableViewItem.cpp +++ b/src/ui/controls/FUiCtrl_TableViewItem.cpp @@ -2037,26 +2037,12 @@ _TableViewItem::DrawItemBackground(void) return; } - String imagePath = null; - if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pDrawBitmap) == false) - { - imagePath = _BitmapImpl::GetInstance(*pDrawBitmap)->GetFileName(); - } - -// if (imagePath.IsEmpty() == false) -// { -// __pBitmapVisualElement->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255)); -// __pBitmapVisualElement->SetImageSource(imagePath); -// } -// else - { - pCanvas = __pBitmapVisualElement->GetCanvasN(); - SysTryCatch(NID_UI_CTRL, pCanvas != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient."); - pCanvas->SetBackgroundColor(Color(0, 0, 0, 0)); - pCanvas->Clear(); + pCanvas = __pBitmapVisualElement->GetCanvasN(); + SysTryCatch(NID_UI_CTRL, pCanvas != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient."); + pCanvas->SetBackgroundColor(Color(0, 0, 0, 0)); + pCanvas->Clear(); - DrawBitmap(*pCanvas, FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pDrawBitmap); - } + DrawBitmap(*pCanvas, FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height), *pDrawBitmap); } if(IsContextItem())