mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Reverted addition of png_set_filler_16 and png_set_add_alpha_16()
functions. They unnecessarily duplicate png_set_filler() and png_set_add_alpha() which now work properly with 16-bit images.
This commit is contained in:
@@ -8039,7 +8039,7 @@ image_transform_png_set_filler_set(const image_transform *this,
|
||||
RANDOMIZE(data.filler);
|
||||
data.flags = random_choice();
|
||||
|
||||
png_set_filler_16(pp, data.filler, data.flags);
|
||||
png_set_filler(pp, data.filler, data.flags);
|
||||
|
||||
/* The standard display handling stuff also needs to know that
|
||||
* there is a filler, so set that here.
|
||||
@@ -8112,7 +8112,7 @@ image_transform_png_set_add_alpha_set(const image_transform *this,
|
||||
RANDOMIZE(data.filler);
|
||||
data.flags = random_choice();
|
||||
|
||||
png_set_add_alpha_16(pp, data.filler, data.flags);
|
||||
png_set_add_alpha(pp, data.filler, data.flags);
|
||||
this->next->set(this->next, that, pp, pi);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user