[Scummvm-git-logs] scummvm master -> dccf5c1960fa1801e6ac21641778e38694ec39a6
digitall
547637+digitall at users.noreply.github.com
Mon Sep 30 05:03:52 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dccf5c1960 GRAPHICS: Add Default Constructor for Cursor Structure
Commit: dccf5c1960fa1801e6ac21641778e38694ec39a6
https://github.com/scummvm/scummvm/commit/dccf5c1960fa1801e6ac21641778e38694ec39a6
Author: D G Turner (digitall at scummvm.org)
Date: 2019-09-30T04:00:11+01:00
Commit Message:
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.
Changed paths:
graphics/cursorman.h
diff --git a/graphics/cursorman.h b/graphics/cursorman.h
index d4ec940..36215d0 100644
--- a/graphics/cursorman.h
+++ b/graphics/cursorman.h
@@ -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();
};
More information about the Scummvm-git-logs
mailing list