Created
May 2, 2014 01:13
-
-
Save tmyt/89888b5ed42c738cfe0b to your computer and use it in GitHub Desktop.
Direct2D putty を96DPI以外の環境で実行すると、描画サイズがおかしくなる不具合を修正するパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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