diff options
author | Micky <micheledevita2@gmail.com> | 2022-09-18 02:19:55 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2022-11-01 23:35:48 +0100 |
commit | ebf86c96e9b648ce1f7d654032e21d4aa84b8985 (patch) | |
tree | 273fb5c2aad13abdce6571ec4a886448164a0cc4 /tests | |
parent | e6751549cf7247965d1744b8c464f5e901006f21 (diff) |
Rename Image's `get_rect` to `get_region`
Also renames its parameter to from "rect" to "region".
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/io/test_image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/io/test_image.h b/tests/core/io/test_image.h index 181d9a8a54..1559c59b5c 100644 --- a/tests/core/io/test_image.h +++ b/tests/core/io/test_image.h @@ -162,7 +162,7 @@ TEST_CASE("[Image] Basic getters") { CHECK(image->get_size() == Vector2(8, 4)); CHECK(image->get_format() == Image::FORMAT_LA8); CHECK(image->get_used_rect() == Rect2i(0, 0, 0, 0)); - Ref<Image> image_get_rect = image->get_rect(Rect2i(0, 0, 2, 1)); + Ref<Image> image_get_rect = image->get_region(Rect2i(0, 0, 2, 1)); CHECK(image_get_rect->get_size() == Vector2(2, 1)); } |