X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fimage.h;h=d9f5870bdea53aea092be5c4d5a7e4ca5c90b4d8;hb=294c354ae3b1f26887c37f866f082e52c08d80f1;hp=51147cefdcf341a882a426933efe52576721d155;hpb=2ed9d7a0a96638bdf0614c1cf858719e7ced40d3;p=libs%2Fgui.git diff --git a/source/graphics/image.h b/source/graphics/image.h index 51147ce..d9f5870 100644 --- a/source/graphics/image.h +++ b/source/graphics/image.h @@ -16,14 +16,14 @@ class Image public: struct Data { - PixelFormat fmt; - unsigned width; - unsigned height; - unsigned stride; - char *owned_pixels; - char *pixels; - - Data(); + PixelFormat fmt = RGB; + unsigned width = 0; + unsigned height = 0; + unsigned stride = 0; + char *owned_pixels = 0; + char *pixels = 0; + + Data() = default; Data(const Data &); Data &operator=(const Data &); ~Data();