=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Use ARRAY_SIZE() in wined3d_format_get_color_key_conversion().
Alexandre Julliard
julliard at winehq.org
Tue May 30 16:05:12 CDT 2017
Module: wine
Branch: master
Commit: 0d9ce15ff6559f3595de8f5c0024821d9097ef6c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0d9ce15ff6559f3595de8f5c0024821d9097ef6c
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon May 29 10:53:36 2017 +0200
wined3d: Use ARRAY_SIZE() in wined3d_format_get_color_key_conversion().
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 5c03c79..afe35fa 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -1032,7 +1032,7 @@ const struct wined3d_color_key_conversion * wined3d_format_get_color_key_convers
if (need_alpha_ck && (texture->async.flags & WINED3D_TEXTURE_ASYNC_COLOR_KEY))
{
- for (i = 0; i < sizeof(color_key_info) / sizeof(*color_key_info); ++i)
+ for (i = 0; i < ARRAY_SIZE(color_key_info); ++i)
{
if (color_key_info[i].src_format == format->id)
return &color_key_info[i].conversion;
More information about the wine-cvs
mailing list