Skip to content

Commit

Permalink
squash with prev.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fedchin authored and popcornmix committed Sep 20, 2015
1 parent ca6e901 commit d747ab9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ XMFLOAT4X4* CYUV2RGBMatrix::Matrix()
if (m_NeedRecalc)
{
TransformMatrix matrix;
CalculateYUVMatrix(matrix, m_flags, m_format, m_blacklevel, m_contrast);
CalculateYUVMatrix(matrix, m_flags, m_format, m_blacklevel, m_contrast, true);

m_mat._11 = matrix.m[0][0];
m_mat._12 = matrix.m[1][0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ void CalculateYUVMatrix(TransformMatrix &matrix
, unsigned int flags
, ERenderFormat format
, float black
, float contrast)
, float contrast
, bool limited)
{
TransformMatrix coef;

Expand All @@ -107,7 +108,7 @@ void CalculateYUVMatrix(TransformMatrix &matrix
coef.m[row][col] = conv[col][row];
coef.identity = false;

if(g_Windowing.UseLimitedColor())
if(g_Windowing.UseLimitedColor() || limited)
{
matrix *= TransformMatrix::CreateTranslation(+ 16.0f / 255
, + 16.0f / 255
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ void CalculateYUVMatrix(TransformMatrix &matrix
, unsigned int flags
, ERenderFormat format
, float black
, float contrast);
, float contrast
, bool limited);

#if defined(HAS_GL) || HAS_GLES == 2

Expand Down

0 comments on commit d747ab9

Please sign in to comment.