Commit adda530b authored by Jason Rumney's avatar Jason Rumney

(x_build_heuristic_mask): Filter palette info from color.

(XPutPixel): Swap blue and red.
parent cf234711
......@@ -10749,9 +10749,10 @@ static void XPutPixel (ximg, x, y, color)
rowbytes += 4 - (rowbytes % 4);
pixel = ximg->data + y * rowbytes + x * 3;
*pixel = GetRValue (color);
/* Windows bitmaps are in BGR order. */
*pixel = GetBValue (color);
*(pixel + 1) = GetGValue (color);
*(pixel + 2) = GetBValue (color);
*(pixel + 2) = GetRValue (color);
}
......
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