Fix missed -1 -> 0x3f7f changes for subpage number.

Patch from Otvos Attila oattila at chello dot hu



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24314 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
voroshil 2007-09-01 10:14:42 +00:00
parent bbce9daf29
commit ce81a2156b
1 changed files with 2 additions and 2 deletions

View File

@ -590,7 +590,7 @@ static void put_to_cache(priv_vbi_t* priv,tt_page* pg,int line){
*/
static inline int get_subpagenum_from_cache(priv_vbi_t* priv, int pagenum){
if (!priv->ptt_cache[pagenum])
return -1;
return 0x3f7f;
else
return priv->ptt_cache[pagenum]->subpagenum;
}
@ -830,7 +830,7 @@ static void prepare_visible_page(priv_vbi_t* priv){
PRINT_HEX(priv->display_page,6,priv->pagenum>>4);
PRINT_HEX(priv->display_page,7,priv->pagenum);
}
if(priv->subpagenum!=-1){
if(priv->subpagenum!=0x3f7f){
priv->display_page[8].unicode='.';
PRINT_HEX(priv->display_page,9,priv->subpagenum>>4);
PRINT_HEX(priv->display_page,10,priv->subpagenum);