Commit 0c194895 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Remove some color table size checks, we use full-size color tables now.

parent 49ae7360
......@@ -833,9 +833,8 @@ static void set_color_info( const dib_info *dib, BITMAPINFO *info )
case 8:
if (dib->color_table)
{
info->bmiHeader.biClrUsed = min( dib->color_table_size, 1 << dib->bit_count );
memcpy( info->bmiColors, dib->color_table,
info->bmiHeader.biClrUsed * sizeof(RGBQUAD) );
info->bmiHeader.biClrUsed = 1 << dib->bit_count;
memcpy( info->bmiColors, dib->color_table, info->bmiHeader.biClrUsed * sizeof(RGBQUAD) );
}
break;
case 16:
......
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