From dbfdcc263bc1d943715c0e9f045949845ddb0a15 Mon Sep 17 00:00:00 2001 From: Rodolfo Osvaldo Bogado Date: Mon, 25 Jan 2010 01:10:46 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_VideoDX9/Src/Render.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp index f874a041f1..b596de0695 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp @@ -1100,7 +1100,8 @@ void Renderer::SetDitherMode() void Renderer::SetLineWidth() { // 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)); }