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/Demos/Cube/Cube.cpp | |
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/Demos/Cube/Cube.cpp')
-rw-r--r-- | Userland/Demos/Cube/Cube.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/Cube/Cube.cpp b/Userland/Demos/Cube/Cube.cpp index 30088c9607..9c97fa8990 100644 --- a/Userland/Demos/Cube/Cube.cpp +++ b/Userland/Demos/Cube/Cube.cpp @@ -80,7 +80,7 @@ private: Cube::Cube() { - m_bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::RGB32, { WIDTH, HEIGHT }); + m_bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::BGRx8888, { WIDTH, HEIGHT }); m_accumulated_time = 0; m_cycles = 0; |