mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:38:10 +00:00
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.
This commit is contained in:
parent
0bfdf95af6
commit
e0f32626bc
31 changed files with 70 additions and 70 deletions
|
@ -116,7 +116,7 @@ void MonitorWidget::paint_event(GUI::PaintEvent& event)
|
|||
// Render text label scaled with scale factor to hint at its effect.
|
||||
// FIXME: Once bitmaps have intrinsic scale factors, we could create a bitmap with an intrinsic scale factor of m_desktop_scale_factor
|
||||
// and that should give us the same effect with less code.
|
||||
auto text_bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::RGBA32, Gfx::IntSize { painter.font().width(displayed_resolution_string) + 1, painter.font().glyph_height() + 1 });
|
||||
auto text_bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::BGRA8888, Gfx::IntSize { painter.font().width(displayed_resolution_string) + 1, painter.font().glyph_height() + 1 });
|
||||
GUI::Painter text_painter(*text_bitmap);
|
||||
text_painter.set_font(painter.font());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue