X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fimage.h;h=3f8f556e85a42fa88e5f7f886918037b3143434e;hb=3c5bbaeadb33d288c0f9e487b52904b7ed7e4319;hp=51147cefdcf341a882a426933efe52576721d155;hpb=917c43de100807f4397e36b66b1a748dbf44370e;p=libs%2Fgui.git diff --git a/source/graphics/image.h b/source/graphics/image.h index 51147ce..3f8f556 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 = nullptr; + char *pixels = nullptr; + + Data() = default; Data(const Data &); Data &operator=(const Data &); ~Data();