Skip to content

Commit

Permalink
DanmakuRenderer: apply priority for MaximumLinesFilter|OverlappingFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiao committed Sep 16, 2015
1 parent ee79ef6 commit 8f9041c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class DanmakuRenderer extends Renderer {
private DanmakusRetainer.Verifier mVerifier = new DanmakusRetainer.Verifier() {
@Override
public boolean skipLayout(BaseDanmaku danmaku, float fixedTop, int lines, boolean willHit) {
if (DanmakuFilters.getDefault().filterSecondary(danmaku, lines, 0, mStartTimer, willHit)) {
if (danmaku.priority == 0 && DanmakuFilters.getDefault().filterSecondary(danmaku, lines, 0, mStartTimer, willHit)) {
danmaku.setVisibility(false);
return true;
}
Expand Down Expand Up @@ -76,9 +76,7 @@ public RenderingState draw(IDisplayer disp, IDanmakus danmakus, long startRender
}

if (drawItem.time < startRenderTime
|| (drawItem.priority == 0 && drawItem.isFiltered())
|| drawItem.isFilteredBy(DanmakuFilters.FILTER_TYPE_OVERLAPPING)
|| drawItem.isFilteredBy(DanmakuFilters.FILTER_TYPE_MAXIMUM_LINES)) {
|| (drawItem.priority == 0 && drawItem.isFiltered())) {
continue;
}

Expand Down

0 comments on commit 8f9041c

Please sign in to comment.