mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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:
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user