[PATCH] wined3d: fix color in range comparison

Sergey Isakov isakov-sl at bk.ru
Tue May 26 07:41:51 CDT 2015


If color range is not a pure color but a complex then the procedure wined3d/utils.c:
static BOOL color_in_range(const struct wined3d_color_key *color_key, DWORD color)
will be wrong as noticed by FIXME
For example:
 	color_space_low_value = (100, 100, 0), 
	color_space_high_value = (120, 120, 0)
then the procedure will account color = (110, 20, 0) as in the range. It is false.

This patch will do more correct comparison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150526/c296169c/attachment-0002.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_color_in_range.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150526/c296169c/attachment-0001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150526/c296169c/attachment-0003.html>


More information about the wine-patches mailing list