summaryrefslogtreecommitdiff
authorKe Gong <ke.gong@amlogic.com>2017-12-14 12:31:52 (GMT)
committer Gerrit Code Review <gituser@scgit.amlogic.com>2017-12-14 12:31:52 (GMT)
commitfd2827167cbe0268a42e29e56bc585a1eeba38fe (patch)
treee2e05ac1ab7305c46a537a41ac18aef93ee3a677
parent07c002eae405bd743e9b63b347d6ae715705cdc7 (diff)
parent87b8023d20facc019744e878f1d23fd6e33f2f04 (diff)
downloadlibzvbi-fd2827167cbe0268a42e29e56bc585a1eeba38fe.zip
libzvbi-fd2827167cbe0268a42e29e56bc585a1eeba38fe.tar.gz
libzvbi-fd2827167cbe0268a42e29e56bc585a1eeba38fe.tar.bz2
Merge "ATVCC: Fix roll-up problem" into ics-amlogic
Diffstat
-rw-r--r--src/caption.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/caption.c b/src/caption.c
index 4132788..b96a8d6 100644
--- a/src/caption.c
+++ b/src/caption.c
@@ -914,10 +914,18 @@ set_cursor(cc_channel *ch, int col, int row)
ch->row1 = row;
//clear_roll(ch);
//update_all(ch);
+ if (ch->mode == MODE_ROLL_UP) {
+ clear_roll(ch);
+ update_all(ch);
+ }
} else if (row >= ch->row1 + ch->roll) {
ch->row1 = row - ch->roll + 1;
//clear_roll(ch);
//update_all(ch);
+ if (ch->mode == MODE_ROLL_UP) {
+ clear_roll(ch);
+ update_all(ch);
+ }
}
ch->col = ch->col1 = col;