mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
Revert "Userland: static vs non-static constexpr variables"
This reverts commit 800ea8ea96
.
Booting the system no longer worked after these changes.
This commit is contained in:
parent
68f76b9e37
commit
d60ebbbba6
38 changed files with 184 additions and 192 deletions
|
@ -140,7 +140,7 @@ public:
|
|||
#endif
|
||||
}
|
||||
|
||||
Color interpolate(const Color& other, float weight) const
|
||||
constexpr Color interpolate(const Color& other, float weight) const
|
||||
{
|
||||
u8 r = red() + roundf(static_cast<float>(other.red() - red()) * weight);
|
||||
u8 g = green() + roundf(static_cast<float>(other.green() - green()) * weight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue