Skip to content

Instantly share code, notes, and snippets.

@tmyt
Created May 2, 2014 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmyt/89888b5ed42c738cfe0b to your computer and use it in GitHub Desktop.
Save tmyt/89888b5ed42c738cfe0b to your computer and use it in GitHub Desktop.
Direct2D putty を96DPI以外の環境で実行すると、描画サイズがおかしくなる不具合を修正するパッチ
windows/window.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/windows/window.cpp b/windows/window.cpp
index 63f9a95..0eff4e0 100644
--- a/windows/window.cpp
+++ b/windows/window.cpp
@@ -6640,6 +6640,7 @@ static void d2d_init()
dwrpm->GetPixelGeometry(),
rendering_mode_dw, &dwrpc);
d2dRT->SetTextRenderingParams(dwrpc);
+ d2dRT->SetDpi(96.0f, 96.0f);
dwrpm->Release();
dwrpc->Release();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment