mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-15 23:08:51 +00:00
More warnings: mark/avert truncating conversions from float.
This commit is contained in:
parent
4f5729dd59
commit
2630169229
6 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue