Commit 0d9ce15f authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Use ARRAY_SIZE() in wined3d_format_get_color_key_conversion().

parent cc84b252
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment