summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorJohan Aires Rastén <johan@oljud.se>2022-09-01 11:34:15 +0200
committerJohan Aires Rastén <johan@oljud.se>2022-09-01 20:04:17 +0200
commitb7e2d452336ec3eff6f3393e68443773178c2910 (patch)
tree974be095d4fadc2f6bfc384ebd6ce59c43c5ab9c /core/io
parent8c7be63588bf3e4ef4b780ff57936c68db5939c7 (diff)
Replace Vector2(i) with Size2(i) for methods returning a 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;