diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-25 22:50:41 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-25 22:50:41 +0000 |
commit | ed7da31f67e93c8923669ad496126aa005a8d3a2 (patch) | |
tree | 8b4e87778c533ec86d8fc10463f27926bcd3be2e /core/fxge/win32/win32_int.h | |
parent | cde8b8cb0db2784d8f591fbfa7cfe7a67092b5fa (diff) | |
download | pdfium-ed7da31f67e93c8923669ad496126aa005a8d3a2.tar.xz |
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 <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/win32/win32_int.h')
-rw-r--r-- | core/fxge/win32/win32_int.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h index 43ec6056fd..db0e3894c5 100644 --- a/core/fxge/win32/win32_int.h +++ b/core/fxge/win32/win32_int.h @@ -112,8 +112,7 @@ class CGdiDeviceDriver : public RenderDeviceDriverIface { int dest_top, int dest_width, int dest_height, - uint32_t bitmap_color, - uint32_t flags); + uint32_t bitmap_color); HDC m_hDC; bool m_bMetafileDCType; |