# HG changeset patch # User voroshil # Date 1185761545 0 # Node ID 39b21ffcee4485ae1b2cfc7816bda795c7c876d8 # Parent dc0fc40bf2657b08dfafb116da62e0c460922165 Subtraction should be done after & operation. diff -r dc0fc40bf265 -r 39b21ffcee44 stream/tvi_vbi.c --- a/stream/tvi_vbi.c Mon Jul 30 02:02:32 2007 +0000 +++ b/stream/tvi_vbi.c Mon Jul 30 02:12:25 2007 +0000 @@ -529,7 +529,7 @@ * background thread to top line of current page). Displays "No teletext" * string if no vbi data available. */ -#define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h-10)&0xf):'0'+((h)&0xf) +#define PRINT_HEX(dp,i,h) dp[i].unicode=((h)&0xf)>9?'A'+((h)&0xf)-10:'0'+((h)&0xf) static void prepare_visible_page(priv_vbi_t* priv){ tt_page *pg,*curr_pg; unsigned char *p;