• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28280 (tree)
Time2018-07-12 03:41:20
Authorstefankueng

Log Message

High-DPI adjustments:
The CMFCFontComboBox is resized too small on high-dpi displays, so we adjust the height manually using the height of another combobox.

Change Summary

Incremental Difference

--- trunk/src/TortoiseMerge/SetMainPage.cpp (revision 28279)
+++ trunk/src/TortoiseMerge/SetMainPage.cpp (revision 28280)
@@ -1,6 +1,6 @@
1-// TortoiseMerge - a Diff/Patch program
1+// TortoiseMerge - a Diff/Patch program
22
3-// Copyright (C) 2006-2010, 2012-2014, 2016 - TortoiseSVN
3+// Copyright (C) 2006-2010, 2012-2014, 2016, 2018 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -206,6 +206,8 @@
206206 m_cFontNames.Setup(DEVICE_FONTTYPE|RASTER_FONTTYPE|TRUETYPE_FONTTYPE, 1, FIXED_PITCH);
207207 m_cFontNames.SelectFont(m_sFontName);
208208
209+ m_cFontNames.SendMessage(CB_SETITEMHEIGHT, (WPARAM)-1, m_cFontSizes.GetItemHeight(-1));
210+
209211 UpdateData(FALSE);
210212 return TRUE; // return TRUE unless you set the focus to a control
211213 // EXCEPTION: OCX Property Pages should return FALSE
--- trunk/src/TortoiseProc/Settings/SettingsTBlame.cpp (revision 28279)
+++ trunk/src/TortoiseProc/Settings/SettingsTBlame.cpp (revision 28280)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2007-2008, 2010-2014, 2016 - TortoiseSVN
3+// Copyright (C) 2007-2008, 2010-2014, 2016, 2018 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -194,6 +194,7 @@
194194 }
195195 m_cFontNames.Setup(DEVICE_FONTTYPE|RASTER_FONTTYPE|TRUETYPE_FONTTYPE, 1, FIXED_PITCH);
196196 m_cFontNames.SelectFont(m_sFontName);
197+ m_cFontNames.SendMessage(CB_SETITEMHEIGHT, (WPARAM)-1, m_cFontSizes.GetItemHeight(-1));
197198
198199 UpdateData(FALSE);
199200 return TRUE;
--- trunk/src/TortoiseProc/Settings/SetDialogs.cpp (revision 28279)
+++ trunk/src/TortoiseProc/Settings/SetDialogs.cpp (revision 28280)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2003-2009, 2011-2016 - TortoiseSVN
3+// Copyright (C) 2003-2009, 2011-2016, 2018 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -174,6 +174,7 @@
174174
175175 m_cFontNames.Setup(DEVICE_FONTTYPE|RASTER_FONTTYPE|TRUETYPE_FONTTYPE, 1, FIXED_PITCH);
176176 m_cFontNames.SelectFont(m_sFontName);
177+ m_cFontNames.SendMessage(CB_SETITEMHEIGHT, (WPARAM)-1, m_cFontSizes.GetItemHeight(-1));
177178
178179 UpdateData(FALSE);
179180 return TRUE;
--- trunk/src/TortoiseProc/Settings/SettingsTUDiff.cpp (revision 28279)
+++ trunk/src/TortoiseProc/Settings/SettingsTUDiff.cpp (revision 28280)
@@ -1,6 +1,6 @@
1-// TortoiseSVN - a Windows shell extension for easy version control
1+// TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2014, 2016 - TortoiseSVN
3+// Copyright (C) 2014, 2016, 2018 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -181,6 +181,7 @@
181181 }
182182 m_cFontNames.Setup(DEVICE_FONTTYPE|RASTER_FONTTYPE|TRUETYPE_FONTTYPE, 1, FIXED_PITCH);
183183 m_cFontNames.SelectFont(m_sFontName);
184+ m_cFontNames.SendMessage(CB_SETITEMHEIGHT, (WPARAM)-1, m_cFontSizes.GetItemHeight(-1));
184185
185186 UpdateData(FALSE);
186187 return TRUE;
Show on old repository browser