diff options
author | nyamatongwe <unknown> | 2012-05-08 22:10:50 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-05-08 22:10:50 +1000 |
commit | 40e1626cac33af0369375896dee2a7e61213eb89 (patch) | |
tree | ad89efc403600186439563533db285ae140a32c8 | |
parent | 55a9db60c41d3880d9d5feb44b205d31ee942ce0 (diff) | |
download | scintilla-mirror-40e1626cac33af0369375896dee2a7e61213eb89.tar.gz |
For high DPI modes use explicit 96 DPI scaling for Direct2D to avoid double
scaling and mouse clicks selecting text further in buffer.
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index f0f5ee4c2..c2727607b 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -423,7 +423,7 @@ void ScintillaWin::EnsureRenderTarget() { // Create a Direct2D render target. #if 1 pD2DFactory->CreateHwndRenderTarget( - D2D1::RenderTargetProperties(), + D2D1::RenderTargetProperties(D2D1_RENDER_TARGET_TYPE_DEFAULT, D2D1::PixelFormat(), 96.0, 96.0), D2D1::HwndRenderTargetProperties(hw, size), &pRenderTarget); #else @@ -2810,7 +2810,7 @@ sptr_t PASCAL ScintillaWin::CTWndProc( } else { #if defined(USE_D2D) pD2DFactory->CreateHwndRenderTarget( - D2D1::RenderTargetProperties(), + D2D1::RenderTargetProperties(D2D1_RENDER_TARGET_TYPE_DEFAULT, D2D1::PixelFormat(), 96.0, 96.0), D2D1::HwndRenderTargetProperties(hWnd, D2D1::SizeU(rc.right - rc.left, rc.bottom - rc.top)), &pCTRenderTarget); surfaceWindow->Init(pCTRenderTarget, hWnd); |