mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
AGS: Use C99 isnan instead of std::isnan
This commit is contained in:
parent
4dcde68f4a
commit
22dae3061e
@ -20,7 +20,6 @@
|
||||
*/
|
||||
|
||||
#include "ags/lib/std/algorithm.h"
|
||||
#include "ags/lib/std/math.h"
|
||||
#include "ags/lib/aastr-0.1.1/aastr.h"
|
||||
#include "ags/shared/core/platform.h"
|
||||
#include "ags/shared/ac/common.h"
|
||||
@ -1853,7 +1852,7 @@ void draw_fps(const Rect &viewport) {
|
||||
|
||||
char fps_buffer[60];
|
||||
// Don't display fps if we don't have enough information (because loop count was just reset)
|
||||
if (!std::isnan(_G(fps))) {
|
||||
if (!isnan(_G(fps))) {
|
||||
snprintf(fps_buffer, sizeof(fps_buffer), "FPS: %2.1f / %s", _G(fps), base_buffer);
|
||||
} else {
|
||||
snprintf(fps_buffer, sizeof(fps_buffer), "FPS: --.- / %s", base_buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user