summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/app/xfa_ffimage.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffimage.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xfa/fxfa/app/xfa_ffimage.cpp b/xfa/fxfa/app/xfa_ffimage.cpp
index 23ed88616d..db9b4de52a 100644
--- a/xfa/fxfa/app/xfa_ffimage.cpp
+++ b/xfa/fxfa/app/xfa_ffimage.cpp
@@ -21,16 +21,19 @@ CXFA_FFImage::~CXFA_FFImage() {
bool CXFA_FFImage::IsLoaded() {
return !!GetDataAcc()->GetImageImage();
}
+
bool CXFA_FFImage::LoadWidget() {
- if (GetDataAcc()->GetImageImage()) {
+ if (GetDataAcc()->GetImageImage())
return true;
- }
+
GetDataAcc()->LoadImageImage();
return CXFA_FFDraw::LoadWidget();
}
+
void CXFA_FFImage::UnloadWidget() {
GetDataAcc()->SetImageImage(nullptr);
}
+
void CXFA_FFImage::RenderWidget(CFX_Graphics* pGS,
CFX_Matrix* pMatrix,
uint32_t dwStatus) {