aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2010-06-06 20:05:46 -0400
committerDevin Heitmueller <dheitmueller@kernellabs.com>2010-06-06 20:05:46 -0400
commitf3a6758a82ef4ff921bb668a8e7779e2fa4d52d1 (patch)
treeb85faff5bf7777a38153bfdfadf3c0e0ab868e22
parent2a5c4695ea29ccea70a194b24333e8a3f2d352fd (diff)
Import patch from tvtime sourceforge tracker related to CC multiline clearing
Original patch provided by Nick Duffek ( nickaerva ) - 2006-09-24 18:29:19 UTC
-rw-r--r--src/vbiscreen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vbiscreen.c b/src/vbiscreen.c
index 093cf41..e0584de 100644
--- a/src/vbiscreen.c
+++ b/src/vbiscreen.c
@@ -461,8 +461,11 @@ void vbiscreen_erase_non_displayed( vbiscreen_t *vs )
if( vs->verbose ) fprintf( stderr, "vbiscreen: Erase non-displayed.\n");
if( vs->captions && vs->style == POP_UP ) {
- memset( vs->buffers + vs->curbuffer * COLS * ROWS + vs->cury * COLS, 0, COLS );
-/* clear_hidden_pop( vs );*/
+ /* When a multi-row caption has been popped up, as in the scene where
+ Bilbo gives Sting to Frodo in the Fellowship of the Rings, it's
+ insufficient to clear just the current row. */
+/* memset( vs->buffers + vs->curbuffer * COLS * ROWS + vs->cury * COLS, 0, COLS ); */
+ clear_hidden_pop( vs );
} else if( vs->captions && vs->style && vs->style <= ROLL_4 ) {
clear_hidden_roll( vs );
}

Privacy Policy