(x_build_heuristic_mask): Filter palette info from color.
(XPutPixel): Swap blue and red.
This commit is contained in:
parent
cf234711dc
commit
adda530bc8
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue