1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

comdlg32: Use values from DeviceCapabilities in combobox.

dpiX,dpiY are the default printer values from the GetDeviceCaps calls.
This causes the item data to be the same for every option in the
combobox.

The item data should reflect the selected values.
This commit is contained in:
Brendan McGrath 2024-01-30 06:05:23 +11:00 committed by Alexandre Julliard
parent a9b3fdd3ae
commit 4ec559743d

View file

@ -1229,7 +1229,7 @@ static BOOL PRINTDLG_ChangePrinterA(HWND hDlg, char *name, PRINT_PTRA *PrintStru
if(IsDefault)
SendMessageA(hQuality, CB_SETCURSEL, Index, 0);
SendMessageA(hQuality, CB_SETITEMDATA, Index, MAKELONG(dpiX,dpiY));
SendMessageA(hQuality, CB_SETITEMDATA, Index, MAKELONG(Resolutions[i], Resolutions[i+1]));
}
free(Resolutions);
}