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:
InvalidUsernameException 2025-11-23 13:07:37 +01:00 committed by Jelle Raaijmakers
parent 645052b87e
commit 07f61f2cec
Notes: github-actions[bot] 2025-11-28 17:35:01 +00:00
2 changed files with 19 additions and 39 deletions

View file

@ -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: