summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-01 23:50:59 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-01 23:50:59 +0200
commit005aac2dbe2ed590e30e85424100f016c6c65fd6 (patch)
treea976723bc3c18472b13c81f607b0e8260699d80a /core/io
parent168f6ca63b6b244273afb69163704bf3212f4206 (diff)
parentb7e2d452336ec3eff6f3393e68443773178c2910 (diff)
Merge pull request #65187 from JohanAR/vector_to_size
Diffstat (limited to 'core/io')
-rw-r--r--core/io/image.cpp4
-rw-r--r--core/io/image.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/io/image.cpp b/core/io/image.cpp
index 2d87523ca4..dee751eec5 100644
--- a/core/io/image.cpp
+++ b/core/io/image.cpp
@@ -416,8 +416,8 @@ int Image::get_height() const {
return height;
}
-Vector2i Image::get_size() const {
- return Vector2i(width, height);
+Size2i Image::get_size() const {
+ return Size2i(width, height);
}
bool Image::has_mipmaps() const {
diff --git a/core/io/image.h b/core/io/image.h
index 9d415423be..fd264a7a38 100644
--- a/core/io/image.h
+++ b/core/io/image.h
@@ -209,7 +209,7 @@ private:
public:
int get_width() const; ///< Get image width
int get_height() const; ///< Get image height
- Vector2i get_size() const;
+ Size2i get_size() const;
bool has_mipmaps() const;
int get_mipmap_count() const;