Skip to content

Commit

Permalink
squash me, render vdpau
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 20, 2015
1 parent 4edba0e commit 411303b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -74,7 +74,7 @@ bool CRendererVDPAU::Supports(ERENDERFEATURE feature)
if(feature == RENDERFEATURE_BRIGHTNESS ||
feature == RENDERFEATURE_CONTRAST)
{
if ((m_renderMethod & RENDER_VDPAU) && !CSettings::Get().GetBool(CSettings::SETTING_VIDEOSCREEN_LIMITEDRANGE))
if ((m_renderMethod & RENDER_VDPAU) && !CSettings::GetInstance().GetBool(CSettings::SETTING_VIDEOSCREEN_LIMITEDRANGE))
return true;

return (m_renderMethod & RENDER_GLSL)
Expand Down Expand Up @@ -132,7 +132,7 @@ bool CRendererVDPAU::Supports(ESCALINGMETHOD method)
// if scaling is below level, avoid hq scaling
float scaleX = fabs(((float)m_sourceWidth - m_destRect.Width())/m_sourceWidth)*100;
float scaleY = fabs(((float)m_sourceHeight - m_destRect.Height())/m_sourceHeight)*100;
int minScale = CSettings::Get().GetInt("videoplayer.hqscalers");
int minScale = CSettings::GetInstance().GetInt("videoplayer.hqscalers");
if (scaleX < minScale && scaleY < minScale)
return false;

Expand Down

0 comments on commit 411303b

Please sign in to comment.