Module: wine
Branch: master
Commit: 4ec559743d254e3547c0cabdcb1014854404e108
URL: https://gitlab.winehq.org/wine/wine/-/commit/4ec559743d254e3547c0cabdcb1014…
Author: Brendan McGrath <bmcgrath(a)codeweavers.com>
Date: Tue Jan 30 06:05:23 2024 +1100
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.
---
dlls/comdlg32/printdlg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index 700119bc9ff..2a2b7e9d1b2 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -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);
}