mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-30 23:02:39 -06:00
uppsrc: Developing HiDPI support
git-svn-id: svn://ultimatepp.org/upp/trunk@8788 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ed73c01c2c
commit
5be4de0e8b
24 changed files with 135 additions and 118 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue