diff options
author | jmarshallnz <jcmarsha@gmail.com> | 2014-04-17 13:38:04 +1200 |
---|---|---|
committer | Jonathan Marshall <jmarshall@xbmc.org> | 2014-04-18 16:43:10 +1200 |
commit | 8cffdbe14c58504cc9c1f1ff2ff464eb2d160c28 (patch) | |
tree | 81e914449805604be6e687e9739256994423a31e | |
parent | 2eae591dd3806769c634a57a0653d8a90afc329c (diff) |
Merge pull request #4518 from astiob/convert_quad
Clean up convert_quad slightly and fix subtitle corruption with new libass
-rw-r--r-- | xbmc/cores/VideoRenderers/OverlayRendererUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/cores/VideoRenderers/OverlayRendererUtil.cpp b/xbmc/cores/VideoRenderers/OverlayRendererUtil.cpp index 72478ab49e..ef473e4535 100644 --- a/xbmc/cores/VideoRenderers/OverlayRendererUtil.cpp +++ b/xbmc/cores/VideoRenderers/OverlayRendererUtil.cpp @@ -198,15 +198,15 @@ bool convert_quad(ASS_Image* images, SQuads& quads) if((img->color & 0xff) == 0xff || img->w == 0 || img->h == 0) continue; - quads.size_x += img->w; + quads.size_x += img->w + 1; quads.count++; } if (quads.count == 0) return false; - while(quads.size_x > (int)g_Windowing.GetMaxTextureSize()) - quads.size_x /= 2; + if (quads.size_x > (int)g_Windowing.GetMaxTextureSize()) + quads.size_x = g_Windowing.GetMaxTextureSize(); int curr_x = 0; int curr_y = 0; |