Removed obsoleted resize algos Downscale Faster/Better. Applied Lanczos instead. Ported all resize algos to float instead of double. Removed corresponding strings from default language file.
This commit is contained in:
@@ -48,8 +48,6 @@ Resize::Resize () : Gtk::VBox(), FoldableToolPanel(this), maxw(100000), maxh(100
|
||||
method->append_text (M("TP_RESIZE_BICUBIC"));
|
||||
method->append_text (M("TP_RESIZE_BICUBICSF"));
|
||||
method->append_text (M("TP_RESIZE_BICUBICSH"));
|
||||
method->append_text (M("TP_RESIZE_DOWNSCALEB"));
|
||||
method->append_text (M("TP_RESIZE_DOWNSCALEF"));
|
||||
method->append_text (M("TP_RESIZE_LANCZOS"));
|
||||
method->set_active (0);
|
||||
|
||||
@@ -150,12 +148,13 @@ void Resize::read (const ProcParams* pp, const ParamsEdited* pedited) {
|
||||
method->set_active (3);
|
||||
else if (pp->resize.method == "Bicubic (Sharper)")
|
||||
method->set_active (4);
|
||||
else if (pp->resize.method == "Downscale (Better)")
|
||||
method->set_active (5);
|
||||
else if (pp->resize.method == "Downscale (Faster)")
|
||||
method->set_active (6);
|
||||
else if (pp->resize.method == "Lanczos")
|
||||
method->set_active (7);
|
||||
method->set_active (5);
|
||||
else if (pp->resize.method == "Downscale (Better)" ||
|
||||
pp->resize.method == "Downscale (Faster)")
|
||||
{
|
||||
method->set_active (5);
|
||||
}
|
||||
|
||||
wDirty = false;
|
||||
hDirty = false;
|
||||
@@ -206,10 +205,6 @@ void Resize::write (ProcParams* pp, ParamsEdited* pedited) {
|
||||
else if (method->get_active_row_number() == 4)
|
||||
pp->resize.method = "Bicubic (Sharper)";
|
||||
else if (method->get_active_row_number() == 5)
|
||||
pp->resize.method = "Downscale (Better)";
|
||||
else if (method->get_active_row_number() == 6)
|
||||
pp->resize.method = "Downscale (Faster)";
|
||||
else if (method->get_active_row_number() == 7)
|
||||
pp->resize.method = "Lanczos";
|
||||
|
||||
pp->resize.dataspec = dataSpec;
|
||||
|
Reference in New Issue
Block a user