diff options
author | Samuele Zolfanelli <samdazel@gmail.com> | 2022-07-09 19:29:49 +0200 |
---|---|---|
committer | Samuele Zolfanelli <samdazel@gmail.com> | 2022-07-09 22:05:58 +0200 |
commit | e27c5acedd4fee6016e365d41896b6820f9217bb (patch) | |
tree | 5cd319fba23dc556afebd9fa80a1282178376c8f /core | |
parent | d26442e709f6361af9ac755ec9291bb43f2cd69b (diff) |
Make Image.get_size() return a Vector2i instead of a Vector2
Diffstat (limited to 'core')
-rw-r--r-- | core/io/image.cpp | 4 | ||||
-rw-r--r-- | core/io/image.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/io/image.cpp b/core/io/image.cpp index 473d70bd7c..fa9a8ce81d 100644 --- a/core/io/image.cpp +++ b/core/io/image.cpp @@ -416,8 +416,8 @@ int Image::get_height() const { return height; } -Vector2 Image::get_size() const { - return Vector2(width, height); +Vector2i Image::get_size() const { + return Vector2i(width, height); } bool Image::has_mipmaps() const { diff --git a/core/io/image.h b/core/io/image.h index 6b323e5eb3..53c867fe08 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 - Vector2 get_size() const; + Vector2i get_size() const; bool has_mipmaps() const; int get_mipmap_count() const; |