Skip to content

Commit 35ef38d

Browse files
committed
Alternative black vertical lines fix from jpd002#897
1 parent 323fd76 commit 35ef38d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Source/gs/GSH_OpenGL/GSH_OpenGL.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,12 @@ void CGSH_OpenGL::SetRenderingContext(uint64 primReg)
674674
m_nPrimOfsX = offset.GetX();
675675
m_nPrimOfsY = offset.GetY();
676676

677+
// Account for the fact that PS2 assumes the pixel center at the bottom left,
678+
// but OpenGL at the center of the screen. On even resolutions this causes a slight
679+
// discrepancy.
680+
m_nPrimOfsX -= 0.5f;
681+
m_nPrimOfsY -= 0.5f;
682+
677683
CHECKGLERROR();
678684

679685
m_renderState.isValid = true;

Source/gs/GSHandler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,9 @@ void CGSHandler::WriteRegisterImpl(uint8 nRegister, uint64 nData)
756756

757757
switch(nRegister)
758758
{
759+
case GS_REG_ST:
760+
m_nReg[nRegister] &= 0xFFFFFF00FFFFFF00;
761+
break;
759762
case GS_REG_TEX0_1:
760763
case GS_REG_TEX0_2:
761764
{

0 commit comments

Comments
 (0)