Fix problem with subtitle caching (bug #322)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@928 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -106,7 +106,7 @@ static int subtitle_state = DONE_SUBTITLE;
|
||||
static Mutex subtitle_mutex;
|
||||
int do_subtitles (UNICODE *pStr);
|
||||
|
||||
static UNICODE *last_subtitle;
|
||||
static volatile UNICODE *last_subtitle;
|
||||
static TFB_Image *subtitle_cache;
|
||||
|
||||
/* _count_lines - mostly stolen from add_text, just sees how many lines
|
||||
@@ -744,6 +744,8 @@ RefreshResponses (PENCOUNTER_STATE pES)
|
||||
static void
|
||||
FeedbackPlayerPhrase (UNICODE *pStr)
|
||||
{
|
||||
last_subtitle = NULL;
|
||||
|
||||
SetContext (SpaceContext);
|
||||
|
||||
BatchGraphics ();
|
||||
|
||||
Reference in New Issue
Block a user