Whatever the order of rgb in the widgetset pixels, in TColor it is well-defined. Since all times, clRed has been 255, and this means that red is the lower-order byte in TColor (--> $BBGGRR). When the red and blue in the specific TColorRec values are exchanged, then this clearly is a bug. Please report this to the FPC bugtracker.