mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
ensure image script functions preserve metadata
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <data/format/image_encoding.hpp>
|
||||
#include <gfx/gfx.hpp>
|
||||
#include <util/reflect.hpp>
|
||||
#include <algorithm>
|
||||
@@ -575,7 +576,10 @@ void combine_image(Image& a, const Image& b, ImageCombine combine) {
|
||||
DISPATCH(COMBINE_SMALLER_THAN_240);
|
||||
DISPATCH(COMBINE_SMALLER_THAN_245);
|
||||
DISPATCH(COMBINE_SMALLER_THAN_250);
|
||||
}
|
||||
}
|
||||
|
||||
//transfer metadata
|
||||
a.SetOption(wxIMAGE_OPTION_PNG_DESCRIPTION, metadata_merge(a, b));
|
||||
}
|
||||
|
||||
void draw_combine_image(DC& dc, UInt x, UInt y, const Image& img, ImageCombine combine) {
|
||||
|
||||
Reference in New Issue
Block a user