mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
SAGA2: Fix global constructor warning in playmode.cpp
This commit is contained in:
parent
582952b6a0
commit
d6bd7b2f22
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user