mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +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
Notes:
sideshowbarker
2024-07-18 17:50:59 +09:00
Author: https://github.com/mattco98
Commit: fbe712e265
Pull-request: https://github.com/SerenityOS/serenity/pull/7018
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/bcoles
Reviewed-by: https://github.com/tomuta
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