mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Everywhere: Use the correct literal suffixes
When performing arithmetic with long doubles/floats, we want to avoid floating point promotion and narrowing.
This commit is contained in:
parent
b76ad3db90
commit
714bd011e1
2 changed files with 7 additions and 7 deletions
|
@ -465,9 +465,9 @@ void ColorField::create_color_bitmap()
|
|||
Gfx::HSV hsv;
|
||||
hsv.hue = m_hue;
|
||||
for (int x = 0; x < 256; x++) {
|
||||
hsv.saturation = x / 255.0f;
|
||||
hsv.saturation = x / 255.0;
|
||||
for (int y = 0; y < 256; y++) {
|
||||
hsv.value = (255 - y) / 255.0f;
|
||||
hsv.value = (255 - y) / 255.0;
|
||||
Color color = Color::from_hsv(hsv);
|
||||
painter.set_pixel({ x, y }, color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue