diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-16 11:48:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-16 11:50:03 +0100 |
commit | e0f32626bcae634528327e43bcfa59c810c5a3ef (patch) | |
tree | 072c22a299de5df27324e9174818298b9d34845d /Userland/MenuApplets | |
parent | 0bfdf95af6afa4ed32cea574eaec661b63263c94 (diff) | |
download | serenity-e0f32626bcae634528327e43bcfa59c810c5a3ef.zip |
LibGfx: Rename 32-bit BitmapFormats to BGRA8888 and BGRx888x
The previous names (RGBA32 and RGB32) were misleading since that's not
the actual byte order in memory. The new names reflect exactly how the
color values get laid out in bitmap data.
Diffstat (limited to 'Userland/MenuApplets')
-rw-r--r-- | Userland/MenuApplets/ClipboardHistory/ClipboardHistoryModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/MenuApplets/ClipboardHistory/ClipboardHistoryModel.cpp b/Userland/MenuApplets/ClipboardHistory/ClipboardHistoryModel.cpp index 2afbeca41a..3df29df700 100644 --- a/Userland/MenuApplets/ClipboardHistory/ClipboardHistoryModel.cpp +++ b/Userland/MenuApplets/ClipboardHistory/ClipboardHistoryModel.cpp @@ -64,8 +64,8 @@ static const char* bpp_for_format_resilient(String format) return "4"; case Gfx::BitmapFormat::Indexed8: return "8"; - case Gfx::BitmapFormat::RGB32: - case Gfx::BitmapFormat::RGBA32: + case Gfx::BitmapFormat::BGRx8888: + case Gfx::BitmapFormat::BGRA8888: return "32"; case Gfx::BitmapFormat::Invalid: /* fall-through */ |