More warnings: mark/avert truncating conversions from float.

This commit is contained in:
comex committed 2013-09-01 22:59:35 -04:00
1 parent 4f5729dd59
commit 2630169229
6 files changed
+13 -13

No files matched your search

@@ -1318,7 +1318,7 @@ void Renderer::SetLineWidth()
// We can't change line width in D3D unless we use ID3DXLine
float fratio = xfregs.viewport.wd != 0 ? Renderer::EFBToScaledXf(1.f) : 1.0f;
float psize = bpmem.lineptwidth.pointsize * fratio / 6.0f;
psize = psize > 0 ? psize : 1.0;
psize = psize > 0 ? psize : 1.0f;
if (psize > m_fMaxPointSize)
{
psize = m_fMaxPointSize;