SAGA2: Initialize gPixelMap properly

This commit is contained in:
a/ 2021-07-17 05:19:27 +09:00
parent 7561607213
commit 34fa087b3f

View File

@ -50,6 +50,8 @@ public:
Extent16 size; // image size
uint8 *data;
gPixelMap() : data(nullptr) {}
// Compute the number of bytes in the pixel map
int32 bytes(void) {
return size.x * size.y;