r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, (pCanvas != null), r, "Propagating.");
+ pCanvas->Clear();
+
bgBounds = pCanvas->GetBoundsF();
if(__pKeypadBackgroundBitmap != null)
}
else
{
+ bgBounds.x = (bgBounds.width - __pKeypadBackgroundBitmap->GetWidthF()) / 2;
+ bgBounds.y = (bgBounds.height - __pKeypadBackgroundBitmap->GetHeightF()) / 2;
r = pCanvas->DrawBitmap(FloatPoint(bgBounds.x, bgBounds.y), *__pKeypadBackgroundBitmap);
SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
}
-
}
r = DrawAllButtons(*pCanvas);