diff 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
line wrap: on
line diff
--- 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;