diff --git a/plugins/GSdx/GSRendererOGL.cpp b/plugins/GSdx/GSRendererOGL.cpp index cfe74a2b09..043d52bf97 100644 --- a/plugins/GSdx/GSRendererOGL.cpp +++ b/plugins/GSdx/GSRendererOGL.cpp @@ -39,7 +39,7 @@ GSRendererOGL::GSRendererOGL() UserHacks_TCO_y = ((UserHacks_TCOffset >> 16) & 0xFFFF) / -1000.0f; UserHacks_merge_sprite = theApp.GetConfigB("UserHacks_merge_pp_sprite"); UserHacks_unscale_pt_ln = theApp.GetConfigB("UserHacks_unscale_point_line"); - UserHacks_HPO = theApp.GetConfigI("UserHacks_HalfPixelOffset_New"); + UserHacks_HPO = theApp.GetConfigI("UserHacks_HalfPixelOffset"); m_prim_overlap = PRIM_OVERLAP_UNKNOW; ResetStates(); @@ -740,7 +740,7 @@ void GSRendererOGL::EmulateBlending(bool DATE_GL42) void GSRendererOGL::RealignTargetTextureCoordinate(const GSTextureCache::Source* tex) { - if (!UserHacks_HPO || GetUpscaleMultiplier() == 1) return; + if (UserHacks_HPO <= 1 || GetUpscaleMultiplier() == 1) return; GSVertex* v = &m_vertex.buff[0]; const GSVector2& scale = tex->m_texture->GetScale(); @@ -753,7 +753,7 @@ void GSRendererOGL::RealignTargetTextureCoordinate(const GSTextureCache::Source* if (PRIM->FST) { - if (UserHacks_HPO > 1) { + if (UserHacks_HPO == 3) { if (!linear && t_position == 8) { half_offset.x = 8; half_offset.y = 8; @@ -1420,7 +1420,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour //The resulting shifted output aligns better with common blending / corona / blurring effects, //but introduces a few bad pixels on the edges. - if (rt && rt->LikelyOffset && !UserHacks_HPO) + if (rt && rt->LikelyOffset && UserHacks_HPO == 1) { ox2 *= rt->OffsetHack_modx; oy2 *= rt->OffsetHack_mody; diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 9b836f0ac0..175330f712 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -33,7 +33,7 @@ GSTextureCache::GSTextureCache(GSRenderer* r) if (theApp.GetConfigB("UserHacks")) { m_spritehack = theApp.GetConfigI("UserHacks_SpriteHack"); - UserHacks_HalfPixelOffset = theApp.GetConfigB("UserHacks_HalfPixelOffset"); + UserHacks_HalfPixelOffset = theApp.GetConfigI("UserHacks_HalfPixelOffset") == 1; m_preload_frame = theApp.GetConfigB("preload_frame_with_gs_data"); m_disable_partial_invalidation = theApp.GetConfigB("UserHacks_DisablePartialInvalidation"); m_can_convert_depth = !theApp.GetConfigB("UserHacks_DisableDepthSupport");