comparison stream/tvi_vbi.c @ 23908:39b21ffcee44

Subtraction should be done after & operation.
author voroshil
date Mon, 30 Jul 2007 02:12:25 +0000
parents dc0fc40bf265
children c6becdb359d7
comparison
equal deleted inserted replaced
23907:dc0fc40bf265 23908:39b21ffcee44
527 * 527 *
528 * Routine adds some useful info (time and page number of page, grabbed by 528 * Routine adds some useful info (time and page number of page, grabbed by
529 * background thread to top line of current page). Displays "No teletext" 529 * background thread to top line of current page). Displays "No teletext"
530 * string if no vbi data available. 530 * string if no vbi data available.
531 */ 531 */
532 #define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h-10)&0xf):'0'+((h)&0xf) 532 #define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h)&0xf)-10:'0'+((h)&0xf)
533 static void prepare_visible_page(priv_vbi_t* priv){ 533 static void prepare_visible_page(priv_vbi_t* priv){
534 tt_page *pg,*curr_pg; 534 tt_page *pg,*curr_pg;
535 unsigned char *p; 535 unsigned char *p;
536 int i; 536 int i;
537 537