Skip to content
Browse files

[subs] fix incorrect matrix specification

  • Loading branch information...
1 parent 0018656 commit 9183454d0f518cda8cfce64b8a94f26754f11e28 Jonathan Marshall committed Nov 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp
View
4 xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp
@@ -163,8 +163,8 @@ void COverlayText::Render(OVERLAY::SRenderState &state)
float scale = rd.Width() / (res.Overscan.right - res.Overscan.left);
TransformMatrix mat;
mat.m[0][0] = mat.m[1][1] = scale;
- mat.m[3][0] = rd.x1;
- mat.m[3][1] = rd.y1;
+ mat.m[0][3] = rd.x1;
+ mat.m[1][3] = rd.y1;
float x = state.x, y = state.y;
mat.InverseTransformPosition(x, y);

0 comments on commit 9183454

Please sign in to comment.
Something went wrong with that request. Please try again.