MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / LodePNGText_copy

Function LodePNGText_copy

src/lodepng.cpp:2711–2722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2709}
2710
2711static unsigned LodePNGText_copy(LodePNGInfo* dest, const LodePNGInfo* source)
2712{
2713 size_t i = 0;
2714 dest->text_keys = 0;
2715 dest->text_strings = 0;
2716 dest->text_num = 0;
2717 for(i = 0; i < source->text_num; i++)
2718 {
2719 CERROR_TRY_RETURN(lodepng_add_text(dest, source->text_keys[i], source->text_strings[i]));
2720 }
2721 return 0;
2722}
2723
2724void lodepng_clear_text(LodePNGInfo* info)
2725{

Callers 1

lodepng_info_copyFunction · 0.85

Calls 1

lodepng_add_textFunction · 0.85

Tested by

no test coverage detected