From ed7da31f67e93c8923669ad496126aa005a8d3a2 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 25 Oct 2018 22:50:41 +0000 Subject: Simplify some code in CGdiDisplayDriver. - GDI_StretchBitMask(), which is not an override, has a flags parameter that is never used. Remove it. - StretchDIBits() checks its flags parameter and does an early return, but still continue to use it afterwards when its only possible value is 0. Replace the flags variable with 0. Change-Id: Iad63557a1c28f2b5b84260a6b5498c1d7beada7f Reviewed-on: https://pdfium-review.googlesource.com/c/44611 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fxge/win32/fx_win32_print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxge/win32/fx_win32_print.cpp') diff --git a/core/fxge/win32/fx_win32_print.cpp b/core/fxge/win32/fx_win32_print.cpp index fce378cd4d..aeec161bf5 100644 --- a/core/fxge/win32/fx_win32_print.cpp +++ b/core/fxge/win32/fx_win32_print.cpp @@ -121,7 +121,7 @@ bool CGdiPrinterDriver::StretchDIBits(const RetainPtr& pSource, dest_top += dest_height; return GDI_StretchBitMask(pFlipped, dest_left, dest_top, abs(dest_width), - abs(dest_height), color, flags); + abs(dest_height), color); } CFX_DIBExtractor temp(pSource); @@ -129,7 +129,7 @@ bool CGdiPrinterDriver::StretchDIBits(const RetainPtr& pSource, if (!pBitmap) return false; return GDI_StretchBitMask(pBitmap, dest_left, dest_top, dest_width, - dest_height, color, flags); + dest_height, color); } if (pSource->HasAlpha()) -- cgit v1.2.3