Skip to content

Commit

Permalink
GSDX-TextureCache: Port Half pixel offset hack for custom resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
ssakash committed Jul 28, 2016
1 parent 620876e commit 47f69f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/GSdx/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,14 @@ GSTextureCache::Source* GSTextureCache::CreateSource(const GIFRegTEX0& TEX0, con
{
switch(m_renderer->GetUpscaleMultiplier())
{
case 0: //Custom Resolution
{
const float offset = 0.2f;
modx = dst->m_texture->GetScale().x + offset;
mody = dst->m_texture->GetScale().y + offset;
dst->m_texture->LikelyOffset = true;
break;
}
case 2: modx = 2.2f; mody = 2.2f; dst->m_texture->LikelyOffset = true; break;
case 3: modx = 3.1f; mody = 3.1f; dst->m_texture->LikelyOffset = true; break;
case 4: modx = 4.2f; mody = 4.2f; dst->m_texture->LikelyOffset = true; break;
Expand Down

0 comments on commit 47f69f6

Please sign in to comment.