From ae948f1a2359932d6f486c9ad86e5ab9bd566647 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Sat, 20 Sep 2008 15:04:02 +0000 Subject: [PATCH] Added point size emulation to DX9 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@587 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/BPStructs.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/BPStructs.cpp b/Source/Plugins/Plugin_VideoDX9/Src/BPStructs.cpp index 630894e824..7bd1f0cdbd 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/BPStructs.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/BPStructs.cpp @@ -226,9 +226,13 @@ void BPWritten(int addr, int changes, int newval) break; case BPMEM_LINEPTWIDTH: - // We can't change line width in D3D. However, we can change point size. TODO - //bpmem.lineptwidth.pointsize); - //bpmem.lineptwidth.linesize); + { + // We can't change line width in D3D unless we use ID3DXLine + //bpmem.lineptwidth.linesize); + float psize = float(bpmem.lineptwidth.pointsize) * 6.0f; + + Renderer::SetRenderState(D3DRS_POINTSIZE, *((DWORD*)&psize)); + } break; case 0x43: