GDI: implement color management functions

Hans Leidekker hans at it.vu.nl
Sun Jan 30 10:18:20 CST 2005


This patch adds two fields to the internal DC structure: a handle to
the color space associated with a DC and the ICM mode. Included tests
show that on Windows a freshly created display DC has a color space
associated with it and that color management is off by default.

This patch doesn't go as far as allocating and initializing a color
space on DC creation. It simply creates (a dummy) one when asked for,
to avoid any impact on performance. It also doesn't fully implement
color space handles, instead it simply casts a pointer to a handle
and back.

 -Hans

Changelog:
  Implement and test SetICMMode, {Get,Set}ColorSpace, CreateColorSpace{A,W},
  DeleteColorSpace, GetLogColorSpace{A,W}.
  Implement GetICMProfileA -> W cross call.
  Put color management functions together in one file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdi32_icm.diff
Type: text/x-diff
Size: 28478 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050130/e8ab56e0/gdi32_icm.bin


More information about the wine-patches mailing list