summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_listboxtp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/theme/cfwl_listboxtp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_listboxtp.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/xfa/fwl/theme/cfwl_listboxtp.cpp b/xfa/fwl/theme/cfwl_listboxtp.cpp
index 6c495b4c81..9b8cd0dc7a 100644
--- a/xfa/fwl/theme/cfwl_listboxtp.cpp
+++ b/xfa/fwl/theme/cfwl_listboxtp.cpp
@@ -22,21 +22,22 @@ void CFWL_ListBoxTP::DrawBackground(CFWL_ThemeBackground* pParams) {
switch (pParams->m_iPart) {
case CFWL_Part::Border: {
- DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix);
+ DrawBorder(pParams->m_pGraphics.Get(), &pParams->m_rtPart,
+ &pParams->m_matrix);
break;
}
case CFWL_Part::Background: {
- FillSolidRect(pParams->m_pGraphics, ArgbEncode(255, 255, 255, 255),
+ FillSolidRect(pParams->m_pGraphics.Get(), ArgbEncode(255, 255, 255, 255),
&pParams->m_rtPart, &pParams->m_matrix);
if (pParams->m_pData) {
- FillSolidRect(pParams->m_pGraphics, FWLTHEME_COLOR_Background,
+ FillSolidRect(pParams->m_pGraphics.Get(), FWLTHEME_COLOR_Background,
static_cast<CFX_RectF*>(pParams->m_pData),
&pParams->m_matrix);
}
break;
}
case CFWL_Part::ListItem: {
- DrawListBoxItem(pParams->m_pGraphics, pParams->m_dwStates,
+ DrawListBoxItem(pParams->m_pGraphics.Get(), pParams->m_dwStates,
&pParams->m_rtPart, pParams->m_pData, &pParams->m_matrix);
break;
}
@@ -47,7 +48,7 @@ void CFWL_ListBoxTP::DrawBackground(CFWL_ThemeBackground* pParams) {
} else if (pParams->m_dwStates == CFWL_PartState_Normal) {
color = 0xFF0000FF;
}
- FillSolidRect(pParams->m_pGraphics, color, &pParams->m_rtPart,
+ FillSolidRect(pParams->m_pGraphics.Get(), color, &pParams->m_rtPart,
&pParams->m_matrix);
break;
}