uppsrc: Developing HiDPI support

git-svn-id: svn://ultimatepp.org/upp/trunk@8788 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-08-03 17:27:04 +00:00
parent ed73c01c2c
commit 5be4de0e8b
24 changed files with 135 additions and 118 deletions

View file

@ -13,7 +13,7 @@ TextCompareCtrl::TextCompareCtrl()
number_bg = WhiteGray();
SetFrame(FieldFrame());
AddFrame(scroll);
SetFont(Courier(14), Courier(10));
SetFont(Courier(Zy(14)), Courier(Zy(10)));
scroll.NoAutoHide();
scroll.WhenScroll = THISBACK(SelfScroll);
maxwidth = 0;
@ -28,7 +28,7 @@ TextCompareCtrl::TextCompareCtrl()
int TextCompareCtrl::GetLineNo(int y, int& ii)
{
ii = scroll.Get().y + y / letter.cy;
return ii >= 0 && ii < lines.GetCount() ? lines[ii].number : Null;
return ii >= 0 && ii < lines.GetCount() ? lines[ii].number : Null;
}
void TextCompareCtrl::DoSelection(int y, bool shift)