1 Aug 03:16
a few patches
David Hough <david <at> thepriorities.com>
2003-08-01 01:16:47 GMT
2003-08-01 01:16:47 GMT
Hi,
I've recently been looking to use zinf as my main music player but first
I've had to fix some bugs and do some customizing, so here are the patches
i've developed so far
1. The fastforward and rewind keyboard shortcuts try to go past the
beggining and end of the files, and crash zinf if playing mp3s, ogg files
seem fine with this for some reason
--- zinfunpatched/ui/zinf/src/ZinfTheme.cpp 2003-05-18 20:56:17.000000000
+0000
+++ zinf/ui/zinf/src/ZinfTheme.cpp 2003-08-01 00:32:14.000000000 +0000
@@ -1402,22 +1402,26 @@
void ZinfTheme::StepPosition(int iSteps)
{
- string oSeek("Seek");
- //string oName("Info"), oEmpty("");
+
+ if (m_iFramesSinceSeek > 0) {
int iValue, iFrame;
- m_pWindow->ControlIntValue(oSeek, false, iValue);
+ if ((m_iCurrentSeconds == m_iTotalSeconds) && (iSteps > 0))
+ return;
- iFrame = (int)(((float)iValue * (float)m_iTotalSeconds) /
- ((float)100 * m_fSecondsPerFrame));
+ iValue = m_iCurrentSeconds + iSteps;
(Continue reading)
RSS Feed