diff options
| author | BossCode45 <boss@tehbox.org> | 2025-06-27 17:58:36 +1200 |
|---|---|---|
| committer | BossCode45 <boss@tehbox.org> | 2025-07-24 12:48:21 +1200 |
| commit | 078b4e08fe3bccb7424dac76e158bf8bf48a182d (patch) | |
| tree | a4f84f3fc346053c1c41990be4cc0867ab206cf5 /src/image.cpp | |
| parent | eed164fa72297efb69b624f3c58cb5deb339a974 (diff) | |
| download | tehimage-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.cpp | 3 |
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; } } - |
