SAGA2: Fix global constructor warning in playmode.cpp

This commit is contained in:
a/ 2021-07-17 11:32:46 +09:00
parent 582952b6a0
commit d6bd7b2f22
2 changed files with 12 additions and 1 deletions

View File

@ -45,6 +45,15 @@ typedef uint8 gPen; // a pen index number
// A general purpose image
struct StaticPixelMap {
StaticPoint16 size;
uint8 *data;
int32 bytes() {
return size.x * size.y;
}
};
class gPixelMap {
public:
Extent16 size; // image size
@ -52,6 +61,8 @@ public:
gPixelMap() : data(nullptr) {}
gPixelMap(StaticPixelMap m) : size(m.size), data(m.data) {}
// Compute the number of bytes in the pixel map
int32 bytes(void) {
return size.x * size.y;

View File

@ -127,7 +127,7 @@ ContainerView *invContainer; // TEST inventory container
// Drag and Drop variables
gPixelMap objPointerMap; // bitmap for pointer
static StaticPixelMap objPointerMap = {{0, 0}, nullptr}; // bitmap for pointer
// Resource handle for UI imagery