+ {
+ c = GetDIBPixel(iBmpFormat, pvBits, 0);
+ expected = iXlateFromRGB(iBmpFormat, GetBkColor(hdcDst));
+ ok(c == expected, "(%ld): wrong color, expected %lx, got %lx\n", iBmpFormat, expected, c);
+
+ c = GetDIBPixel(iBmpFormat, pvBits, 1);
+ expected = iXlateFromRGB(iBmpFormat, GetTextColor(hdcDst));
+ ok(c == expected, "(%ld): wrong color, expected %lx, got %lx\n", iBmpFormat, expected, c);
+ }
+
+ /* Set inverted fore and back colors */
+ SetTextColor(hdcSrc, 0);
+ SetBkColor(hdcSrc, 0xffffff);
+ SetTextColor(hdcDst, 0xffffff);
+ SetBkColor(hdcDst, 0x000000);
+
+ /* Repeat the bitblt operation */
+ ok(BitBlt(hdcDst, 0, 0, 2, 2, hdcSrc, 0, 0, SRCCOPY), "(%ld): BitBlt failed", iBmpFormat);
+
+ /* Test background color */
+ c = GetPixel(hdcDst, 0, 0);
+ expected = GetClosestColor(iBmpFormat, GetBkColor(hdcDst), 0xffffff);
+ ok(c == expected, "(%ld): wrong color, expected %lx, got %lx\n", iBmpFormat, expected, c);
+
+ /* Test foreground color */
+ c = GetPixel(hdcDst, 1, 0);
+ expected = GetClosestColor(iBmpFormat, GetTextColor(hdcDst), 0);