20 Nov
2025
20 Nov
'25
6:53 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ds_image.c:
+ if (activeDS.progressWnd) + { + char szFormat[20]; + int sid_format; + + switch (activeDS.frame_params.format) + { + case FMT_RGB: sid_format=IDS_COLOUR; break; + case FMT_GRAY: sid_format=activeDS.frame_params.depth==1 ? IDS_LINEART : IDS_GRAY; break; + default: sid_format=IDS_UNKNOWN; + } + + LoadStringA( SANE_instance, sid_format, szFormat, ARRAY_SIZE( szFormat ) ); + + SetDlgItemTextA(activeDS.progressWnd, IDC_RESOLUTION, szFormat);
We should use the W versions of these functions. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9530#note_123152