mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-03 05:57:40 -05:00
fix: Multiple FreeBSD build and run errors
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include <stdexcept>
|
||||
#include <fcntl.h>
|
||||
#include <sys/file.h>
|
||||
#include <unistd.h>
|
||||
#include <jthread.hpp>
|
||||
|
||||
#include <hex/helpers/logger.hpp>
|
||||
#include <hex/api/events/events_lifecycle.hpp>
|
||||
|
||||
@@ -352,7 +352,7 @@ namespace hex {
|
||||
|
||||
while (frameTime < targetFrameTime - longestExceededFrameTime) {
|
||||
auto remainingFrameTime = targetFrameTime - frameTime;
|
||||
glfwWaitEventsTimeout(remainingFrameTime);
|
||||
glfwWaitEventsTimeout(std::min(remainingFrameTime, 1000.0));
|
||||
|
||||
auto newFrameTime = glfwGetTime() - frameTimeStart;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user