Skip to content

Commit

Permalink
Merge 4981d6f into b9e21f8
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus authored Aug 2, 2020
2 parents b9e21f8 + 4981d6f commit 853621d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sakura_core/window/CTipWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void CTipWnd::ComputeWindowSize(
}
}else{
// ダミー文字列を計測して必要な高さを取得する
::DrawText( hdc, szDummy, _countof( szDummy ) - 1, &rc, DT_CALCRECT );
::DrawText( hdc, szDummy, _countof( szDummy ) - 1, &rc, DT_CALCRECT | DT_EXTERNALLEADING );
}

// 計測した高さを加算する
Expand Down Expand Up @@ -257,7 +257,7 @@ void CTipWnd::DrawTipText(
);
}else{
// ダミー文字列の高さを取得する
nHeight = ::DrawText( hdc, szDummy, _countof(szDummy) - 1, &rc, DT_CALCRECT );
nHeight = ::DrawText( hdc, szDummy, _countof(szDummy) - 1, &rc, DT_EXTERNALLEADING );
}

// 描画領域の上端を1行分ずらす
Expand Down

0 comments on commit 853621d

Please sign in to comment.