Apply CheckNinePatchedBitmapStrictly
authorHeeJu Kang <mobum.kang@samsung.com>
Mon, 8 Apr 2013 02:55:15 +0000 (11:55 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Mon, 8 Apr 2013 02:55:15 +0000 (11:55 +0900)
Change-Id: Ifdc8c74a5b742e097b41156175293ac01925b70d
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
src/FShell_AppWidgetPopupPresenter.cpp

index 72d3595..fbc5db4 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <new>
 #include <FBaseSysLog.h>
+#include <FGrp_BitmapImpl.h>
 #include "FShell_AppWidgetPopupPresenter.h"
 #include "FShell_AppWidgetPopup.h"
 #include "FShell_AppWidgetPopupModel.h"
@@ -111,7 +112,7 @@ _AppWidgetPopupPresenter::DrawBackground(Canvas& canvas)
        bounds.x = 0;
        bounds.y = 0;
 
-       if (__pBackgroundBitmap->IsNinePatchedBitmap())
+       if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*__pBackgroundBitmap))
        {
                canvas.DrawNinePatchedBitmap(bounds, *__pBackgroundBitmap);
        }
@@ -145,7 +146,7 @@ _AppWidgetPopupPresenter::DrawAnchor(Canvas& canvas)
 
        Rectangle bounds(anchor.x, anchor.y, pArrowBitmap->GetWidth(), pArrowBitmap->GetHeight());
 
-       if (pArrowBitmap->IsNinePatchedBitmap())
+       if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pArrowBitmap))
        {
                canvas.DrawNinePatchedBitmap(bounds, *pArrowBitmap);
        }