From 4f7479ad5bd977eff1d08c65c44cb8d3950a2d77 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 21 Mar 2018 13:37:06 +0000 Subject: Change FXSYS_RGB() to FXSYS_BGR(). Also change it from a macro to a constexpr function. Change-Id: I8b2bb42c45a23da6db136abdaee24132db4471c6 Reviewed-on: https://pdfium-review.googlesource.com/28579 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fxge/dib/fx_dib_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxge/dib') diff --git a/core/fxge/dib/fx_dib_main.cpp b/core/fxge/dib/fx_dib_main.cpp index 6c3a236edd..002fc2e394 100644 --- a/core/fxge/dib/fx_dib_main.cpp +++ b/core/fxge/dib/fx_dib_main.cpp @@ -84,7 +84,7 @@ std::pair ArgbToAlphaAndColorRef(FX_ARGB argb) { } FX_COLORREF ArgbToColorRef(FX_ARGB argb) { - return FXSYS_RGB(FXARGB_R(argb), FXARGB_G(argb), FXARGB_B(argb)); + return FXSYS_BGR(FXARGB_B(argb), FXARGB_G(argb), FXARGB_R(argb)); } FX_ARGB AlphaAndColorRefToArgb(int a, FX_COLORREF colorref) { -- cgit v1.2.3