(2012-04-14 00:34)giaur Wrote: It should be half x dimension and untouched y dimension in case side by side 3d mode, or untouched x dimension and half y dimension in case top-bottom 3d mode.I already tried to do this patch this way, but it seems that subtitles aspect ratio can't be changed. If y dimension is changed, subtitles font size changed. Changing x dimension doesn't affect subtitles font size:
Code:
float xx=720;
float yy=576;
if (g_settings.m_currentVideoSettings.m_Subtitle3DMode!=0)
{
xx*=1.5f;
yy*=1.5f;
}
RESOLUTION_INFO pal((int)xx, (int)yy, 0);
CGUIFont *subFont = g_fontManager.LoadTTF("__subtitle__", fontPath, color[g_guiSettings.GetInt("subtitles.color")], 0, g_guiSettings.GetInt("subtitles.height"), g_guiSettings.GetInt("subtitles.style"), false, 1.0f, 1.0f, &pal, true);
CGUIFont *borderFont = g_fontManager.LoadTTF("__subtitleborder__", fontPath, 0xFF000000, 0, g_guiSettings.GetInt("subtitles.height"), g_guiSettings.GetInt("subtitles.style"), true, 1.0f, 1.0f, &pal, true);
if (!subFont || !borderFont)I don't know how to scale subtitles font half x dimension and untouched y dimension or untouched x dimension and half y dimension.

Search
Help