Skip to content

Commit

Permalink
Improve rendition-matching prediction heuristic.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Aug 14, 2012
1 parent 63e66e9 commit bf8a29f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/frontend/terminaloverlay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,16 @@ void PredictionEngine::cull( const Framebuffer &fb )
}
}

/* match rest of row to the actual renditions */
{
const Renditions &actual_renditions = fb.get_cell( i->row_num, j->col )->renditions;
for ( overlay_cells_type::iterator k = j;
k != i->overlay_cells.end();
k++ ) {
k->replacement.renditions = actual_renditions;
}
}

/* no break */
case CorrectNoCredit:
j->reset();
Expand Down

0 comments on commit bf8a29f

Please sign in to comment.