Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f6639.
There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.
This commit is contained in:
@ -60,7 +60,7 @@ static bool check_error(const png_image &image) {
|
||||
|
||||
Error png_to_image(const uint8_t *p_source, size_t p_size, bool p_force_linear, Ref<Image> p_image) {
|
||||
png_image png_img;
|
||||
zeromem(&png_img, sizeof(png_img));
|
||||
memset(&png_img, 0, sizeof(png_img));
|
||||
png_img.version = PNG_IMAGE_VERSION;
|
||||
|
||||
// fetch image properties
|
||||
@ -134,7 +134,7 @@ Error image_to_png(const Ref<Image> &p_image, Vector<uint8_t> &p_buffer) {
|
||||
ERR_FAIL_COND_V(source_image->is_compressed(), FAILED);
|
||||
|
||||
png_image png_img;
|
||||
zeromem(&png_img, sizeof(png_img));
|
||||
memset(&png_img, 0, sizeof(png_img));
|
||||
png_img.version = PNG_IMAGE_VERSION;
|
||||
png_img.width = source_image->get_width();
|
||||
png_img.height = source_image->get_height();
|
||||
|
||||
Reference in New Issue
Block a user