1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

LibGfx: Rename RotationDirection members

Left => CounterClockwise
Right => Clockwise

Makes much more sense for a rotation
This commit is contained in:
Matthew Olsson 2021-05-02 22:38:29 -07:00 committed by Andreas Kling
parent f7ea1eb610
commit fbe712e265
3 changed files with 5 additions and 5 deletions

View file

@ -357,7 +357,7 @@ RefPtr<Gfx::Bitmap> Bitmap::rotated(Gfx::RotationDirection rotation_direction) c
for (int i = 0; i < w; i++) {
for (int j = 0; j < h; j++) {
Color color;
if (rotation_direction == Gfx::RotationDirection::Left)
if (rotation_direction == Gfx::RotationDirection::CounterClockwise)
color = this->get_pixel(w - i - 1, j);
else
color = this->get_pixel(i, h - j - 1);