aboutsummaryrefslogtreecommitdiff
path: root/src/image.cpp
diff options
context:
space:
mode:
authorBossCode45 <boss@tehbox.org>2025-06-27 17:58:36 +1200
committerBossCode45 <boss@tehbox.org>2025-07-24 12:48:21 +1200
commit078b4e08fe3bccb7424dac76e158bf8bf48a182d (patch)
treea4f84f3fc346053c1c41990be4cc0867ab206cf5 /src/image.cpp
parenteed164fa72297efb69b624f3c58cb5deb339a974 (diff)
downloadtehimage-078b4e08fe3bccb7424dac76e158bf8bf48a182d.tar.gz
tehimage-078b4e08fe3bccb7424dac76e158bf8bf48a182d.zip
feat: Made it so that you can now convert between image subclasses
Also added the bitmap image subclass note: this is pretty hacky in how it works
Diffstat (limited to 'src/image.cpp')
-rw-r--r--src/image.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/image.cpp b/src/image.cpp
index 35941e5..f819b94 100644
--- a/src/image.cpp
+++ b/src/image.cpp
@@ -2,9 +2,8 @@
Image::~Image()
{
- if(width != 0 && height != 0)
+ if(width != 0)
{
delete[] imageData;
}
}
-