comparison gui/mplayer/gui_common.c @ 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
comparison
equal deleted inserted replaced
32964:cddc94d28830 32965:3242637f94b6
404 case itHPotmeter: 404 case itHPotmeter:
405 if (item->numphases == 1) 405 if (item->numphases == 1)
406 SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0f); 406 SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0f);
407 else 407 else
408 PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0f)); 408 PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0f));
409 PutImage(&item->Mask, item->x + (int)((item->width - item->pwidth) * (item->value / 100.0f)), item->y, 3, ofs); 409 PutImage(&item->Mask, item->x + (item->width - item->pwidth) * (item->value / 100.0f), item->y, 3, ofs);
410 break; 410 break;
411 411
412 case itVPotmeter: 412 case itVPotmeter:
413 PutImage(&item->Bitmap, item->x, item->y, item->numphases, item->numphases * (1.0f - item->value / 100.0f)); 413 PutImage(&item->Bitmap, item->x, item->y, item->numphases, item->numphases * (1.0f - item->value / 100.0f));
414 PutImage(&item->Mask, item->x, item->y + (int)((item->height - item->pheight) * (1.0f - item->value / 100.0f)), 3, ofs); 414 PutImage(&item->Mask, item->x, item->y + (item->height - item->pheight) * (1.0f - item->value / 100.0f), 3, ofs);
415 break; 415 break;
416 416
417 case itSLabel: 417 case itSLabel:
418 image = fntRender(item, 0, item->label); 418 image = fntRender(item, 0, item->label);
419 if (image) 419 if (image)