Skip to content

Commit

Permalink
Merge pull request #1358 from berryzplus/feature/fix_draw_option
Browse files Browse the repository at this point in the history
空行描画のオプションが誤っているのを修正する。
  • Loading branch information
berryzplus authored Aug 2, 2020
2 parents b9e21f8 + 4981d6f commit d3a1a8e
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 d3a1a8e

Please sign in to comment.