mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
GRAPHICS: Add Default Constructor for Cursor Structure
This has a similar issue to the Palette structure and thus this will avoid possible unstable uninitialized bugs which could be very hard to track down or replicate.
This commit is contained in:
parent
3fdb8e6542
commit
dccf5c1960
@ -195,6 +195,9 @@ private:
|
||||
|
||||
uint _size;
|
||||
|
||||
// _format set to default by Graphics::PixelFormat default constructor
|
||||
Cursor() : _data(0), _visible(false), _width(0), _height(0), _hotspotX(0), _hotspotY(0), _keycolor(0), _dontScale(false), _size(0) {}
|
||||
|
||||
Cursor(const void *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale = false, const Graphics::PixelFormat *format = NULL);
|
||||
~Cursor();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user