]> git.tdb.fi Git - libs/gui.git/commitdiff
Export Image::Data in the public API
authorMikko Rasa <tdb@tdb.fi>
Tue, 5 Sep 2023 09:23:52 +0000 (12:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 5 Sep 2023 09:23:52 +0000 (12:23 +0300)
It's necessary because Image's destructor is generated by the compiler,
and also in case a user wants to define their own image loader.

source/graphics/image.h

index 15685c606e98353bf92d00c701c8f756f00b1fe2..6f90250111d53f465400e20557ea0de6d81791cd 100644 (file)
@@ -15,7 +15,7 @@ class ImageLoader;
 class MSPGUI_API Image
 {
 public:
-       struct Data
+       struct MSPGUI_API Data
        {
                PixelFormat fmt = RGB;
                unsigned width = 0;