mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:47:36 +00:00
LibGfx: Rename RGBA32 => ARGB32
The ARGB32 typedef is used for 32-bit #AARRGGBB quadruplets. As such, the name RGBA32 was misleading, so let's call it ARGB32 instead. Since endianness is a thing, let's not encode any assumptions about byte order in the name of this type. ARGB32 is basically a "machine word" of color.
This commit is contained in:
parent
5c4bb03926
commit
5ace66a903
14 changed files with 84 additions and 84 deletions
|
@ -157,7 +157,7 @@ public:
|
|||
int height() const { return m_virtual_rect.height(); }
|
||||
int scale_factor() const { return screen_layout_info().scale_factor; }
|
||||
|
||||
Gfx::RGBA32* scanline(int buffer_index, int y);
|
||||
Gfx::ARGB32* scanline(int buffer_index, int y);
|
||||
|
||||
Gfx::IntSize physical_size() const { return { physical_width(), physical_height() }; }
|
||||
|
||||
|
@ -204,7 +204,7 @@ private:
|
|||
size_t m_size_in_bytes { 0 };
|
||||
size_t m_back_buffer_offset { 0 };
|
||||
|
||||
Gfx::RGBA32* m_framebuffer { nullptr };
|
||||
Gfx::ARGB32* m_framebuffer { nullptr };
|
||||
bool m_can_set_buffer { false };
|
||||
bool m_can_device_flush_buffers { true }; // If the device can't do it we revert to false
|
||||
|
||||
|
@ -215,9 +215,9 @@ private:
|
|||
NonnullOwnPtr<CompositorScreenData> m_compositor_screen_data;
|
||||
};
|
||||
|
||||
inline Gfx::RGBA32* Screen::scanline(int buffer_index, int y)
|
||||
inline Gfx::ARGB32* Screen::scanline(int buffer_index, int y)
|
||||
{
|
||||
return reinterpret_cast<Gfx::RGBA32*>(((u8*)m_framebuffer) + buffer_offset(buffer_index) + (y * m_pitch));
|
||||
return reinterpret_cast<Gfx::ARGB32*>(((u8*)m_framebuffer) + buffer_offset(buffer_index) + (y * m_pitch));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue