mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibGfx: Remove redundant enum
With the templatized overload of set_pixel() gone, there is no reason to have two separate enums anymore.
This commit is contained in:
parent
645052b87e
commit
07f61f2cec
Notes:
github-actions[bot]
2025-11-28 17:35:01 +00:00
Author: https://github.com/InvalidUsernameException
Commit: 07f61f2cec
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6911
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/Psychpsyo
Reviewed-by: https://github.com/gmta
2 changed files with 19 additions and 39 deletions
|
|
@ -34,11 +34,11 @@ struct BackingStore {
|
|||
size_t Bitmap::minimum_pitch(size_t width, BitmapFormat format)
|
||||
{
|
||||
size_t element_size;
|
||||
switch (determine_storage_format(format)) {
|
||||
case StorageFormat::BGRx8888:
|
||||
case StorageFormat::BGRA8888:
|
||||
case StorageFormat::RGBx8888:
|
||||
case StorageFormat::RGBA8888:
|
||||
switch (format) {
|
||||
case BitmapFormat::BGRx8888:
|
||||
case BitmapFormat::BGRA8888:
|
||||
case BitmapFormat::RGBx8888:
|
||||
case BitmapFormat::RGBA8888:
|
||||
element_size = 4;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue