From 078b4e08fe3bccb7424dac76e158bf8bf48a182d Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Fri, 27 Jun 2025 17:58:36 +1200 Subject: 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 --- src/image.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/image.cpp') 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; } } - -- cgit v1.2.3