Codechange: Use platform independent C++11 function for sleeping on a thread.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "../core/random_func.hpp"
|
||||
#include "../core/math_func.hpp"
|
||||
#include "../framerate_type.h"
|
||||
#include "../thread.h"
|
||||
#include "allegro_v.h"
|
||||
#include <allegro.h>
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "../../core/math_func.hpp"
|
||||
#include "../../texteff.hpp"
|
||||
#include "../../window_func.h"
|
||||
#include "../../thread.h"
|
||||
|
||||
#import <sys/time.h> /* gettimeofday */
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "../../core/sort_func.hpp"
|
||||
#include "cocoa_v.h"
|
||||
#include "../../gfx_func.h"
|
||||
#include "../../thread.h"
|
||||
#include "../../os/macosx/macos.h"
|
||||
|
||||
/**
|
||||
@@ -174,7 +175,7 @@ class FullscreenSubdriver : public CocoaSubdriver {
|
||||
|
||||
double adjustment = (target - position) / linesPerSecond;
|
||||
|
||||
CSleep((uint32)(adjustment * 1000));
|
||||
CSleep((uint32)adjustment * 1000);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "../company_func.h"
|
||||
#include "../core/random_func.hpp"
|
||||
#include "../saveload/saveload.h"
|
||||
#include "../thread.h"
|
||||
#include "dedicated_v.h"
|
||||
|
||||
#ifdef __OS2__
|
||||
|
||||
Reference in New Issue
Block a user