Browse files

Improve rendition-matching prediction heuristic.

  • Loading branch information...
1 parent 63e66e9 commit bf8a29f783ceab86bac8761099b81d832c7ff68d @keithw keithw committed Aug 14, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/frontend/terminaloverlay.cc
View
10 src/frontend/terminaloverlay.cc
@@ -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();

0 comments on commit bf8a29f

Please sign in to comment.