Index: xfa/fwl/theme/widgettp.cpp |
diff --git a/xfa/fwl/theme/widgettp.cpp b/xfa/fwl/theme/widgettp.cpp |
index 04b67b3310b7b057890ef0bdeeb3cd6ba5eabc54..d51664d058e6f53838aaf58fe14aacffee05048a 100644 |
--- a/xfa/fwl/theme/widgettp.cpp |
+++ b/xfa/fwl/theme/widgettp.cpp |
@@ -9,6 +9,9 @@ |
#include <algorithm> |
#include "xfa/fde/tto/fde_textout.h" |
+#include "xfa/fxgraphics/cfx_color.h" |
+#include "xfa/fxgraphics/cfx_path.h" |
+#include "xfa/fxgraphics/cfx_shading.h" |
#include "xfa/include/fwl/core/fwl_widgetmgr.h" |
static void FWL_SetChildThemeID(IFWL_Widget* pParent, FX_DWORD dwThemeID) { |
@@ -451,7 +454,7 @@ void CFWL_WidgetTP::DrawAxialShading(CFX_Graphics* pGraphics, |
CFX_PointF begPoint(fx1, fy1); |
CFX_PointF endPoint(fx2, fy2); |
- CFX_Shading shading; |
+ CFX_Shading shading(FX_SHADING_Axial); |
Tom Sepez
2016/03/16 19:38:31
Argh, ok, I'm wrong. This now gives the possibili
dsinclair
2016/03/16 19:59:16
Done.
|
shading.CreateAxial(begPoint, endPoint, FALSE, FALSE, beginColor, endColor); |
pGraphics->SaveGraphState(); |
CFX_Color color1(&shading); |