Skip to content

Commit 3f57454

Browse files
committed
点線(下線設定時)の修正
1 parent f54ed2c commit 3f57454

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sakura_core/view/CTextDrawer.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,13 @@ void CTextDrawer::DispVerticalLinesImpl(HDC hdc, const int *nArrVertLineIdx, int
267267
if( nPosXLeft <= nPosX ){
268268
if( bDot ){
269269
// 点線で作画。1ドットの線を作成
270-
int y = nTop;
270+
int y_org = nDirectY * nTop;
271271
// スクロールしても線が切れないように座標を調整
272272
if( bOddLine ){
273-
y++;
273+
y_org += nDirectY;
274274
}
275-
for( ; y < nBottom; y += nDirectY * 2 ){
275+
for( ; y_org < nDirectY * nBottom; y_org += 2 ){
276+
int y = nDirectY * y_org;
276277
if( nPosX < nPosXRight ){
277278
::MoveToEx( hdc, nPosX, y, NULL );
278279
::LineTo( hdc, nPosX, y + nDirectY );

0 commit comments

Comments
 (0)