v2.4 (build 755)

* Also set global scaling factor before the dialog is initialized and
  remove unneeded scaling initialization.
This commit is contained in:
Pete Batard 2015-09-27 19:59:28 +01:00
parent 2b390aaf80
commit ae06a39d2f
4 changed files with 14 additions and 12 deletions

View file

@ -1557,16 +1557,11 @@ void DownloadNewVersion(void)
void SetTitleBarIcon(HWND hDlg)
{
HDC hDC;
int i16, s16, s32;
HICON hSmallIcon, hBigIcon;
// High DPI scaling
i16 = GetSystemMetrics(SM_CXSMICON);
hDC = GetDC(hDlg);
fScale = GetDeviceCaps(hDC, LOGPIXELSX) / 96.0f;
if (hDC != NULL)
ReleaseDC(hDlg, hDC);
// Adjust icon size lookup
s16 = i16;
s32 = (int)(32.0f*fScale);