From bf8a29f783ceab86bac8761099b81d832c7ff68d Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Tue, 14 Aug 2012 07:40:50 -0400 Subject: [PATCH] Improve rendition-matching prediction heuristic. --- src/frontend/terminaloverlay.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/frontend/terminaloverlay.cc b/src/frontend/terminaloverlay.cc index 614d1d4..1c14a0d 100644 --- a/src/frontend/terminaloverlay.cc +++ b/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();