X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fimage.h;h=15685c606e98353bf92d00c701c8f756f00b1fe2;hb=d7686e3867e3c68cec0d3767a21f9d2408383085;hp=d9f5870bdea53aea092be5c4d5a7e4ca5c90b4d8;hpb=294c354ae3b1f26887c37f866f082e52c08d80f1;p=libs%2Fgui.git diff --git a/source/graphics/image.h b/source/graphics/image.h index d9f5870..15685c6 100644 --- a/source/graphics/image.h +++ b/source/graphics/image.h @@ -4,6 +4,7 @@ #include #include #include +#include "mspgui_api.h" #include "pixelformat.h" namespace Msp { @@ -11,7 +12,7 @@ namespace Graphics { class ImageLoader; -class Image +class MSPGUI_API Image { public: struct Data @@ -20,8 +21,8 @@ public: unsigned width = 0; unsigned height = 0; unsigned stride = 0; - char *owned_pixels = 0; - char *pixels = 0; + char *owned_pixels = nullptr; + char *pixels = nullptr; Data() = default; Data(const Data &);