this should solve issue 2128 please test because i don't have the games mentioned in that issue

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4954 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Rodolfo Osvaldo Bogado 2010-01-25 01:10:46 +00:00
parent fe10a1b5b0
commit dbfdcc263b

View file

@ -1100,7 +1100,8 @@ void Renderer::SetDitherMode()
void Renderer::SetLineWidth() void Renderer::SetLineWidth()
{ {
// We can't change line width in D3D unless we use ID3DXLine // We can't change line width in D3D unless we use ID3DXLine
float psize = float(bpmem.lineptwidth.pointsize) * 6.0f; float fratio = xfregs.rawViewport[0] != 0 ? Renderer::GetTargetScaleX() : 1.0f;
float psize = bpmem.lineptwidth.linesize * fratio / 6.0f;
D3D::SetRenderState(D3DRS_POINTSIZE, *((DWORD*)&psize)); D3D::SetRenderState(D3DRS_POINTSIZE, *((DWORD*)&psize));
} }