Adjusted subtitle timings when there are no oggs (part of bug #362),

from chmmravatar


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1228 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-09-13 15:41:14 +00:00
parent 50a80d6f63
commit fc5f75dbb9
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -1,4 +1,6 @@
Changes towards version 0.4:
- Adjusted subtitle timings when there are no oggs (part of bug #362),
from chmmravatar
- Fixed crash in conversation summary and ffw/frew problem when
selling data to Melnorme (bug #476), from chmmravatar
- Flush input after selecting "Navigate" (bug #475) - Michael
+8 -1
View File
@@ -215,7 +215,7 @@ GetTimeStamps(UNICODE *TimeStamps, sint32 *time_stamps)
return (num);
}
#define TEXT_SPEED 70
#define TEXT_SPEED 80
UNICODE **
SplitSubPages (UNICODE *text, sint32 *timestamp, int *num_pages)
{
@@ -239,6 +239,8 @@ SplitSubPages (UNICODE *text, sint32 *timestamp, int *num_pages)
wstrncpy (split_text[page] + ellips, text, pos);
wstrcpy (split_text[page] + ellips + pos, "...");
timestamp[page] = - pos * TEXT_SPEED;
if (timestamp[page] > -1000)
timestamp[page] = -1000;
ellips = 2;
text = text + pos;
pos = 0;
@@ -252,6 +254,8 @@ SplitSubPages (UNICODE *text, sint32 *timestamp, int *num_pages)
wstrncpy (split_text[page] + ellips, text, pos);
*(split_text[page] + ellips + pos) = 0;
timestamp[page] = - pos * TEXT_SPEED;
if (timestamp[page] > -1000)
timestamp[page] = -1000;
ellips = 0;
text = text + pos;
pos = 0;
@@ -276,6 +280,9 @@ SplitSubPages (UNICODE *text, sint32 *timestamp, int *num_pages)
wstrncpy (split_text[page] + ellips, text, pos);
*(split_text[page] + ellips + pos) = 0;
timestamp[page] = - pos * TEXT_SPEED;
if (timestamp[page] > -1000)
timestamp[page] = -1000;
timestamp[page] += -1000;
page ++;
}
*num_pages = page;