diff options
Diffstat (limited to 'core/fxge/dib/cfx_dibitmap.cpp')
-rw-r--r-- | core/fxge/dib/cfx_dibitmap.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fxge/dib/cfx_dibitmap.cpp b/core/fxge/dib/cfx_dibitmap.cpp index 760b26f23a..6f46e1d57e 100644 --- a/core/fxge/dib/cfx_dibitmap.cpp +++ b/core/fxge/dib/cfx_dibitmap.cpp @@ -147,8 +147,11 @@ void CFX_DIBitmap::Clear(uint32_t color) { } case FXDIB_Rgb: case FXDIB_Rgba: { - int a, r, g, b; - ArgbDecode(color, a, r, g, b); + int a; + int r; + int g; + int b; + std::tie(a, r, g, b) = ArgbDecode(color); if (r == g && g == b) { memset(pBuffer, r, m_Pitch * m_Height); } else { |