summaryrefslogtreecommitdiff
path: root/core/fxge/win32/win32_int.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-06-13 10:52:30 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-13 10:52:30 -0700
commit993d817e5e500f281baf37c4027e0f7b0bac7998 (patch)
tree77e797ee32c35bd2f87cdfd65fd62296763e3061 /core/fxge/win32/win32_int.h
parent6d4f6ffd38076361ede07d908f73306e5217409a (diff)
downloadpdfium-993d817e5e500f281baf37c4027e0f7b0bac7998.tar.xz
Fix CGdiDeviceDriver::DrawLine().chromium/2769chromium/2768chromium/2767
- Do the bounds check before applying the transformation. - Simplify the bounds check. - Fix nits. - Remove some nearby dead code. BUG=108144 Review-Url: https://codereview.chromium.org/2057423002
Diffstat (limited to 'core/fxge/win32/win32_int.h')
-rw-r--r--core/fxge/win32/win32_int.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h
index 2143b76250..8a9c124f00 100644
--- a/core/fxge/win32/win32_int.h
+++ b/core/fxge/win32/win32_int.h
@@ -145,10 +145,11 @@ class CGdiDeviceDriver : public IFX_RenderDeviceDriver {
FX_BOOL GetClipBox(FX_RECT* pRect) override;
void* GetPlatformSurface() const override { return (void*)m_hDC; }
- virtual void* GetClipRgn();
- virtual FX_BOOL SetClipRgn(void* pRgn);
- virtual FX_BOOL DeleteDeviceRgn(void* pRgn);
- virtual void DrawLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2);
+ void DrawLine(FX_FLOAT x1,
+ FX_FLOAT y1,
+ FX_FLOAT x2,
+ FX_FLOAT y2,
+ const CFX_Matrix* pMatrix);
FX_BOOL GDI_SetDIBits(CFX_DIBitmap* pBitmap,
const FX_RECT* pSrcRect,