[MPlayer-cvslog] r36997 - in trunk/gui/ui: main.c playbar.c
ib
subversion at mplayerhq.hu
Wed Mar 12 13:07:51 CET 2014
Author: ib
Date: Wed Mar 12 13:07:51 2014
New Revision: 36997
Log:
Simplify code.
Modified:
trunk/gui/ui/main.c
trunk/gui/ui/playbar.c
Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c Wed Mar 12 13:01:40 2014 (r36996)
+++ trunk/gui/ui/main.c Wed Mar 12 13:07:51 2014 (r36997)
@@ -193,12 +193,10 @@ rollerhandled:
case itPRMButton:
if (guiApp.menuIsPresent) guiApp.menuWindow.MouseHandler( 0,RX,RY,0,0 );
break;
- case itPotmeter:
- item->value=100.0 * ( X - item->x ) / item->width;
- goto potihandled;
case itVPotmeter:
item->value=100.0 - 100.0 * ( Y - item->y ) / item->height;
goto potihandled;
+ case itPotmeter:
case itHPotmeter:
item->value=100.0 * ( X - item->x ) / item->width;
potihandled:
Modified: trunk/gui/ui/playbar.c
==============================================================================
--- trunk/gui/ui/playbar.c Wed Mar 12 13:01:40 2014 (r36996)
+++ trunk/gui/ui/playbar.c Wed Mar 12 13:07:51 2014 (r36997)
@@ -214,12 +214,10 @@ rollerhandled:
case itPRMButton:
if (guiApp.menuIsPresent) guiApp.menuWindow.MouseHandler( 0,RX,RY,0,0 );
break;
- case itPotmeter:
- item->value=100.0 * ( X - item->x ) / item->width;
- goto potihandled;
case itVPotmeter:
item->value=100.0 - 100.0 * ( Y - item->y ) / item->height;
goto potihandled;
+ case itPotmeter:
case itHPotmeter:
item->value=100.0 * ( X - item->x ) / item->width;
potihandled:
More information about the MPlayer-cvslog
mailing list