[MPlayer-cvslog] r33052 - trunk/gui/mplayer/gui_common.c
ib
subversion at mplayerhq.hu
Tue Mar 8 13:50:52 CET 2011
Author: ib
Date: Tue Mar 8 13:50:52 2011
New Revision: 33052
Log:
Remove needless casts.
The argument to the function is int anyway.
Modified:
trunk/gui/mplayer/gui_common.c
Modified: trunk/gui/mplayer/gui_common.c
==============================================================================
--- trunk/gui/mplayer/gui_common.c Tue Mar 8 13:38:23 2011 (r33051)
+++ trunk/gui/mplayer/gui_common.c Tue Mar 8 13:50:52 2011 (r33052)
@@ -406,12 +406,12 @@ void Render(wsTWindow *window, wItem *It
SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0f);
else
PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0f));
- PutImage(&item->Mask, item->x + (int)((item->width - item->pwidth) * (item->value / 100.0f)), item->y, 3, ofs);
+ PutImage(&item->Mask, item->x + (item->width - item->pwidth) * (item->value / 100.0f), item->y, 3, ofs);
break;
case itVPotmeter:
PutImage(&item->Bitmap, item->x, item->y, item->numphases, item->numphases * (1.0f - item->value / 100.0f));
- PutImage(&item->Mask, item->x, item->y + (int)((item->height - item->pheight) * (1.0f - item->value / 100.0f)), 3, ofs);
+ PutImage(&item->Mask, item->x, item->y + (item->height - item->pheight) * (1.0f - item->value / 100.0f), 3, ofs);
break;
case itSLabel:
More information about the MPlayer-cvslog
mailing list