mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-22 10:55:19 -04:00
v2.4 (build 755)
* Also set global scaling factor before the dialog is initialized and remove unneeded scaling initialization.
This commit is contained in:
parent
2b390aaf80
commit
ae06a39d2f
4 changed files with 14 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue