diff Gui/mplayer/common.c @ 17254:0e152834911a

vpotmeter fix, scroll in the correct direction
author ods15
date Tue, 27 Dec 2005 19:21:04 +0000
parents 0e1471d9da74
children 6a08d0dabca8
line wrap: on
line diff
--- a/Gui/mplayer/common.c	Tue Dec 27 13:01:22 2005 +0000
+++ b/Gui/mplayer/common.c	Tue Dec 27 19:21:04 2005 +0000
@@ -268,9 +268,9 @@
           PutImage( &item->Bitmap,
 	    item->x,item->y,
 	    item->phases,
-	    item->phases * ( item->value / 100.0f ) );
+	    item->phases * ( 1. - item->value / 100.0f ) );
           PutImage( &item->Mask,
-	    item->x,item->y + (int)( ( item->height - item->psy ) * item->value / 100.0f ),
+	    item->x,item->y + (int)( ( item->height - item->psy ) * ( 1. - item->value / 100.0f ) ),
 	    3,item->pressed );
           break;
      case itSLabel: