Modified a drawing logic of bitmap on _TableViewItem
authoryouseong.ji <youseong.ji@samsung.com>
Wed, 12 Jun 2013 01:29:09 +0000 (10:29 +0900)
committeryouseong.ji <youseong.ji@samsung.com>
Wed, 12 Jun 2013 01:29:09 +0000 (10:29 +0900)
Change-Id: I377c952b29273996bb0c5801612ec4388936894c
Signed-off-by: youseong.ji <youseong.ji@samsung.com>
src/ui/controls/FUiCtrl_TableViewItem.cpp

index 129d84f..c8ae741 100644 (file)
@@ -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())