mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibDraw: Some build fixes for strange platforms
Patch from Anonymous.
This commit is contained in:
parent
6d7854919a
commit
3ebfa9f044
1 changed files with 3 additions and 2 deletions
|
@ -47,10 +47,10 @@ public:
|
|||
case Format::RGB32:
|
||||
case Format::RGBA32:
|
||||
return 32;
|
||||
case Format::Invalid:
|
||||
return 0;
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
case Format::Invalid:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -157,6 +157,7 @@ inline Color GraphicsBitmap::get_pixel(int x, int y) const
|
|||
return get_pixel<Format::Indexed8>(x, y);
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
return { };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue