More warnings: mark/avert truncating conversions from float.

This commit is contained in:
comex
2013-08-30 00:43:21 -04:00
parent 4f5729dd59
commit 2630169229
6 changed files with 13 additions and 13 deletions

View File

@ -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;