From b9eed2f50403e59c7aa414e272ae732d9bca0a7b Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 10 Jul 2017 11:35:18 -0400 Subject: Fix nits in CFFL_FormFiller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cleanup nits in CFFL_FormFiller. Split CFFL_Button into own files. Change-Id: I41fa7118a46aa1f495c15f90a4c4b77b309a10d3 Reviewed-on: https://pdfium-review.googlesource.com/7339 Reviewed-by: Nicolás Peña Commit-Queue: dsinclair --- fpdfsdk/pdfwindow/cpwl_color.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fpdfsdk/pdfwindow') diff --git a/fpdfsdk/pdfwindow/cpwl_color.h b/fpdfsdk/pdfwindow/cpwl_color.h index 6eae48738f..83e73efbf5 100644 --- a/fpdfsdk/pdfwindow/cpwl_color.h +++ b/fpdfsdk/pdfwindow/cpwl_color.h @@ -8,8 +8,12 @@ #define FPDFSDK_PDFWINDOW_CPWL_COLOR_H_ #include "core/fpdfdoc/cpdf_formcontrol.h" +#include "core/fxge/fx_dib.h" struct CPWL_Color { + explicit CPWL_Color(FX_COLORREF ref) + : CPWL_Color(FXARGB_R(ref), FXARGB_G(ref), FXARGB_B(ref)) {} + CPWL_Color(int32_t type = COLORTYPE_TRANSPARENT, float color1 = 0.0f, float color2 = 0.0f, -- cgit v1.2.3