Skip to content

Commit

Permalink
Merge pull request #660 from beru/CEditView_ScrollAtV_DispRuler
Browse files Browse the repository at this point in the history
縦スクロール時に不必要にルーラーの再描画がされないように対策
  • Loading branch information
beru authored Dec 2, 2018
2 parents a31ced8 + ebf5c39 commit 86544be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sakura_core/view/CEditView_Scroll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,9 @@ CLayoutInt CEditView::ScrollAtV( CLayoutInt nPos, BOOL bRedrawScrollBar )
/* スクロール */
if( t_abs( nScrollRowNum ) >= GetTextArea().m_nViewRowNum ){
GetTextArea().SetViewTopLine( CLayoutInt(nPos) );
::InvalidateRect( GetHwnd(), NULL, TRUE );
CMyRect rect = GetTextArea().GetAreaRect();
rect.left = 0;
::InvalidateRect( GetHwnd(), &rect, TRUE );
}else{
rcScrol.left = 0;
rcScrol.right = GetTextArea().GetAreaRight();
Expand Down

0 comments on commit 86544be

Please sign in to comment.