Mercurial > mplayer.hg
changeset 32965:3242637f94b6
Remove needless casts.
The argument to the function is int anyway.
author | ib |
---|---|
date | Tue, 08 Mar 2011 12:50:52 +0000 |
parents | cddc94d28830 |
children | 1f51f39916e1 |
files | gui/mplayer/gui_common.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/mplayer/gui_common.c Tue Mar 08 12:38:23 2011 +0000 +++ b/gui/mplayer/gui_common.c Tue Mar 08 12:50:52 2011 +0000 @@ -406,12 +406,12 @@ 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: