Alexandre Julliard pushed to branch master at wine / wine
Commits: 1b8fabc2 by Bernd Herd at 2025-12-01T18:56:25+01:00 sane.ds: Support SANE Backends that treat resolution as TYPE_FIXED.
Most SANE backends store resolution in DPI as an integer value TYPE_INT. Some store it as TYPE_FIXED. Twain always uses TW_FIX32 for resolution. Provide access in ICAP_xRESOLUTION and DG_IMAGE/DAT_IMAGEINFO/MSG_GET for both types.
Cache resolutions before SANE_Start as some backends do not allow option read access after scanning started any more.
- - - - -
6 changed files:
- dlls/sane.ds/capability.c - dlls/sane.ds/ds_image.c - dlls/sane.ds/options.c - dlls/sane.ds/sane_i.h - dlls/sane.ds/sane_main.c - dlls/sane.ds/unixlib.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/1b8fabc20d08aba5893791e90ecd80b...