Skip to content

Commit

Permalink
Merge pull request sakura-editor#512 from beru/HighDPI_MenuHeight
Browse files Browse the repository at this point in the history
メニュー項目の高さ計算でマージン分をDPIに合わせて調整
  • Loading branch information
beru authored Oct 3, 2018
2 parents 6fb58b9 + a97ce25 commit c14b48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sakura_core/uiparts/CMenuDrawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ void CMenuDrawer::ResetContents( void )
m_nMenuFontHeight = lf.lfHeight;
}
}
m_nMenuHeight = m_nMenuFontHeight + 4; // margin
m_nMenuHeight = m_nMenuFontHeight + DpiScaleY(4); // margin
if( m_pShareData->m_Common.m_sWindow.m_bMenuIcon ){
// 最低アイコン分の高さを確保
if( 20 > m_nMenuHeight ){
Expand Down

0 comments on commit c14b48b

Please sign in to comment.