use higher Y level instead of higher opacity when forcing the lowest segment to merge.

This commit is contained in:
Builderb0y
2023-12-01 15:50:38 +00:00
parent d21244ce23
commit ca9dfed516
@@ -559,15 +559,9 @@ public class RenderDataPointReducingList {
int lowest = this.getLowest();
int higher = this.getHigher(lowest);
if (higher != NULL) {
if (this.getAlpha(higher) >= this.getAlpha(lowest)) {
this.setMinY(higher, this.getMinY(lowest));
this.remove(lowest);
}
else {
this.setMaxY(lowest, this.getMaxY(higher));
this.resortSize(lowest);
this.remove(higher);
}
this.setMinY(higher, this.getMinY(lowest));
this.resortSize(higher);
this.remove(lowest);
if (ASSERTS) this.checkLinks();
return false; //go back to step 1.
}