1 --- xbmc-10.0/xbmc/GUIWindowFullScreen.cpp.orig 2010-12-17 07:17:41.000000000 +0100
2 +++ xbmc-10.0/xbmc/GUIWindowFullScreen.cpp 2011-02-04 22:05:15.000000000 +0100
4 #include "LocalizeStrings.h"
5 #include "utils/SingleLock.h"
7 +#include "utils/RegExp.h"
8 #include "utils/TimeUtils.h"
10 #include "ButtonTranslator.h"
11 +#include "StringUtils.h"
16 subtitleText.Replace("</b", "[/B]");
17 subtitleText.Replace("</u", "");
21 + if (reg.RegComp("({y:i})"))
23 + if (reg.RegFind(subtitleText) >= 0)
25 + strTag = reg.GetMatch(1);
26 + subtitleText.Replace(strTag, "[I]");
27 + subtitleText += "[/I]";
30 + if (reg.RegComp("({y:b})"))
32 + if (reg.RegFind(subtitleText) >= 0)
34 + strTag = reg.GetMatch(1);
35 + subtitleText.Replace(strTag, "[B]");
36 + subtitleText += "[/B]";
40 + bool bChange = false;
42 + reg.RegComp("({c:\\$).+}");
43 + CStdStringArray aLines;
44 + StringUtils::SplitString(subtitleText, "[CR]", aLines);
45 + for (unsigned int i=0; i < aLines.size(); ++i)
47 + if (aLines[i].IsEmpty())
50 + if (aLines[i].GetAt(0) == '/')
52 + aLines[i].Delete(0);
53 + aLines[i] = "[I]" + aLines[i] + "[/I]";
56 + if ( (iPos = reg.RegFind(aLines[i])) >= 0)
58 + strTag = reg.GetMatch(1);
59 + aLines[i].Replace(strTag, "[COLOR FF");
60 + iPos = aLines[i].Find("}", iPos);
61 + aLines[i].SetAt(iPos, ']');
62 + aLines[i] += "[/COLOR]";
67 + StringUtils::JoinString(aLines, "[CR]", subtitleText);
69 RESOLUTION res = g_graphicsContext.GetVideoResolution();
70 g_graphicsContext.SetRenderingResolution(res, false);