[PATCH 6/7] gdi32: Use GetICMProfile driver entry point for EnumICMProfilesW.

Jacek Caban jacek at codeweavers.com
Thu Sep 9 07:01:51 CDT 2021


When display ICM is not explicitly configured on Windows, GetICMProfile 
returns the default profile, but EnumICMProfiles does not enumerate 
anything. For non-default configuration, EnumICMProfiles returns 
configured profiles.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---
My main motivation is to replace EnumICMProfiles driver entry point with 
something more ntgdi-friendly. It's currently implemented only for X11 
driver and it just enumerates a registry key. ACAICT, we never set this 
key, so in practice, it never enumerates anything (unless used 
configured it himself in registries). This patch makes it much closed to 
Windows, except for support for multiple profiles (which we generally 
don't have).

  dlls/gdi32/dibdrv/dc.c      |  2 --
  dlls/gdi32/driver.c         |  8 +----
  dlls/gdi32/emfdrv.c         |  1 -
  dlls/gdi32/font.c           |  1 -
  dlls/gdi32/icm.c            | 15 ++++++----
  dlls/gdi32/path.c           |  1 -
  dlls/wineandroid.drv/init.c |  1 -
  dlls/winemac.drv/gdi.c      |  1 -
  dlls/wineps.drv/init.c      |  1 -
  dlls/winex11.drv/graphics.c | 58 ++-----------------------------------
  dlls/winex11.drv/init.c     |  1 -
  dlls/winex11.drv/x11drv.h   |  3 +-
  dlls/winex11.drv/xrender.c  |  1 -
  include/wine/gdi_driver.h   |  5 ++--
  14 files changed, 15 insertions(+), 84 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-gdi32-Use-GetICMProfile-driver-entry-point-for-EnumICM.txt
Type: text/x-patch
Size: 15195 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210909/41be54db/attachment.bin>


More information about the wine-devel mailing list