mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
abs() works on ints, not floats. Use fabsf() to avoid the double conversions.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5956 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4000df2c66
commit
669de4890a
6 changed files with 17 additions and 16 deletions
|
@ -358,7 +358,7 @@ namespace Clipper
|
|||
float screenDx = 0;
|
||||
float screenDy = 0;
|
||||
|
||||
if(abs(dx) > abs(dy))
|
||||
if(fabsf(dx) > fabsf(dy))
|
||||
{
|
||||
if(dx > 0)
|
||||
screenDy = bpmem.lineptwidth.linesize / -12.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue