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:
parent
f7ea1eb610
commit
fbe712e265
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue