diff --git a/sakura_core/prop/CPropCommon.cpp b/sakura_core/prop/CPropCommon.cpp index 89b6bfe81d..f5109de8eb 100644 --- a/sakura_core/prop/CPropCommon.cpp +++ b/sakura_core/prop/CPropCommon.cpp @@ -498,7 +498,7 @@ HFONT CPropCommon::SetFontLabel( HWND hwndDlg, int idc_static, const LOGFONT& lf lfTemp = lf; // 大きすぎるフォントは小さく表示 - int limitSize = DpiScaleY( 16 ); + LONG limitSize = ::DpiPointsToPixels( 16 ); if ( lfTemp.lfHeight < -limitSize ) { lfTemp.lfHeight = -limitSize; } diff --git a/sakura_core/typeprop/CPropTypes.cpp b/sakura_core/typeprop/CPropTypes.cpp index 52930c0ee3..5e90179034 100644 --- a/sakura_core/typeprop/CPropTypes.cpp +++ b/sakura_core/typeprop/CPropTypes.cpp @@ -285,7 +285,7 @@ HFONT CPropTypes::SetFontLabel( HWND hwndDlg, int idc_static, const LOGFONT& lf, lfTemp = lf; // 大きすぎるフォントは小さく表示 - int limitSize = DpiScaleY( 16 ); + LONG limitSize = ::DpiPointsToPixels( 16 ); if ( lfTemp.lfHeight < -limitSize ) { lfTemp.lfHeight = -limitSize; }