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/Screensaver | |
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/Screensaver')
-rw-r--r-- | Userland/Demos/Screensaver/Screensaver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/Screensaver/Screensaver.cpp b/Userland/Demos/Screensaver/Screensaver.cpp index bf6166a154..2fb8940631 100644 --- a/Userland/Demos/Screensaver/Screensaver.cpp +++ b/Userland/Demos/Screensaver/Screensaver.cpp @@ -54,7 +54,7 @@ private: Screensaver::Screensaver(int width, int height, int interval) { - m_bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::RGB32, { width, height }); + m_bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::BGRx8888, { width, height }); srand(time(nullptr)); stop_timer(); start_timer(interval); |