Commit a373c353 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

gdi32/tests: Test RGBQUAD.rgbReserved in SetDIBColorTable.

parent c66f0019
......@@ -854,6 +854,21 @@ static void test_dibsections(void)
i, colors[i].rgbRed, colors[i].rgbGreen, colors[i].rgbBlue, colors[i].rgbReserved);
}
rgb[0].rgbRed = 1;
rgb[0].rgbGreen = 2;
rgb[0].rgbBlue = 3;
rgb[0].rgbReserved = 123;
ret = SetDIBColorTable( hdcmem, 0, 1, rgb );
ok( ret == 1, "SetDIBColorTable returned unexpected result %u\n", ret );
ok( rgb[0].rgbReserved == 123, "Expected rgbReserved = 123, got %u\n", rgb[0].rgbReserved );
ret = GetDIBColorTable( hdcmem, 0, 1, rgb );
ok( ret == 1, "GetDIBColorTable returned unexpected result %u\n", ret );
ok( rgb[0].rgbRed == 1, "Expected rgbRed = 1, got %u\n", rgb[0].rgbRed );
ok( rgb[0].rgbGreen == 2, "Expected rgbGreen = 2, got %u\n", rgb[0].rgbGreen );
ok( rgb[0].rgbBlue == 3, "Expected rgbBlue = 3, got %u\n", rgb[0].rgbBlue );
todo_wine ok( rgb[0].rgbReserved == 0, "Expected rgbReserved = 0, got %u\n", rgb[0].rgbReserved );
SelectObject(hdcmem, oldbm);
DeleteObject(hdib);
DeleteObject(hpal);
......
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