Codechange: Use platform independent C++11 function for sleeping on a thread.

This commit is contained in:
Michael Lutz
2019-03-17 11:05:53 +01:00
parent 94c5269fa7
commit ae748166d0
12 changed files with 17 additions and 25 deletions

View File

@@ -37,6 +37,7 @@
#include "../../core/math_func.hpp"
#include "../../texteff.hpp"
#include "../../window_func.h"
#include "../../thread.h"
#import <sys/time.h> /* gettimeofday */

View File

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