summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-02 22:36:57 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-02 22:36:57 +0100
commit9ec7aadc06c5c6410839e21d26956579d0628728 (patch)
treef778a87753266d9f7870fbb7fe8dfe38d2277d7a /tests/core
parentc9e0d787fe49af72fcf84d6a54c073985d8a1851 (diff)
parentebf86c96e9b648ce1f7d654032e21d4aa84b8985 (diff)
Merge pull request #66017 from Mickeon/rename-image-copy-rect
Rename Image's `get_rect` to `get_region`
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/io/test_image.h2
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));
}