mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] make methods static inline
This commit is contained in:
parent
163f612efa
commit
2374b1a9fb
@ -573,7 +573,7 @@ bool lgr_opengl_on_frame_event(void * opaque, const uint8_t * data, bool resampl
|
||||
return true;
|
||||
}
|
||||
|
||||
inline void lgr_opengl_draw_mouse(struct LGR_OpenGL * this)
|
||||
static inline void lgr_opengl_draw_mouse(struct LGR_OpenGL * this)
|
||||
{
|
||||
if (!this->mouseVisible)
|
||||
return;
|
||||
|
@ -22,14 +22,14 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#include <time.h>
|
||||
#include <stdint.h>
|
||||
|
||||
inline uint64_t microtime()
|
||||
static inline uint64_t microtime()
|
||||
{
|
||||
struct timespec time;
|
||||
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
|
||||
return ((uint64_t)time.tv_sec * 1000000) + (time.tv_nsec / 1000);
|
||||
}
|
||||
|
||||
inline uint64_t nanotime()
|
||||
static inline uint64_t nanotime()
|
||||
{
|
||||
struct timespec time;
|
||||
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
|
||||
|
Loading…
Reference in New Issue
Block a user