From ebf86c96e9b648ce1f7d654032e21d4aa84b8985 Mon Sep 17 00:00:00 2001 From: Micky Date: Sun, 18 Sep 2022 02:19:55 +0200 Subject: Rename Image's `get_rect` to `get_region` Also renames its parameter to from "rect" to "region". --- tests/core/io/test_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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_get_rect = image->get_rect(Rect2i(0, 0, 2, 1)); + Ref image_get_rect = image->get_region(Rect2i(0, 0, 2, 1)); CHECK(image_get_rect->get_size() == Vector2(2, 1)); } -- cgit v1.2.3