[MPlayer-cvslog] r33057 - in trunk/gui/mplayer: gui_common.c play.c
ib
subversion at mplayerhq.hu
Tue Mar 8 19:53:54 CET 2011
Author: ib
Date: Tue Mar 8 19:53:54 2011
New Revision: 33057
Log:
Use double constants for higher precision calculations.
Modified:
trunk/gui/mplayer/gui_common.c
trunk/gui/mplayer/play.c
Modified: trunk/gui/mplayer/gui_common.c
==============================================================================
--- trunk/gui/mplayer/gui_common.c Tue Mar 8 16:29:19 2011 (r33056)
+++ trunk/gui/mplayer/gui_common.c Tue Mar 8 19:53:54 2011 (r33057)
@@ -412,22 +412,22 @@ void Render(wsTWindow *window, wItem *It
case itPotmeter:
if (item->numphases == 1)
- SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0f);
+ SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0);
else
- PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0f));
+ PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0));
break;
case itHPotmeter:
if (item->numphases == 1)
- SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0f);
+ SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0);
else
- PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0f));
- PutImage(&item->Mask, item->x + (item->width - item->pwidth) * (item->value / 100.0f), item->y, 3, ofs);
+ PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0));
+ PutImage(&item->Mask, item->x + (item->width - item->pwidth) * (item->value / 100.0), 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 + (item->height - item->pheight) * (1.0f - item->value / 100.0f), 3, ofs);
+ PutImage(&item->Bitmap, item->x, item->y, item->numphases, item->numphases * (1.0 - item->value / 100.0));
+ PutImage(&item->Mask, item->x, item->y + (item->height - item->pheight) * (1.0 - item->value / 100.0), 3, ofs);
break;
case itSLabel:
Modified: trunk/gui/mplayer/play.c
==============================================================================
--- trunk/gui/mplayer/play.c Tue Mar 8 16:29:19 2011 (r33056)
+++ trunk/gui/mplayer/play.c Tue Mar 8 19:53:54 2011 (r33057)
@@ -190,7 +190,7 @@ void mplAbsSeek(float s)
if (guiIntfStruct.StreamType == STREAMTYPE_STREAM)
return;
- rel_seek_secs = 0.01f * s; // 0.0..100.0
+ rel_seek_secs = s / 100.0; // 0.0..100.0
abs_seek_pos = 3;
}
More information about the MPlayer-cvslog
mailing list