mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-23 18:23:53 +08:00
Fixed build issues on macOS (#22075)
* Fixed deprecated enum value * Changed to build Qt replay on macOS
This commit is contained in:
@@ -104,7 +104,7 @@ if GetOption('setup'):
|
||||
|
||||
|
||||
# build headless replay
|
||||
if arch == 'x86_64' and os.path.exists(Dir("#tools/").get_abspath()):
|
||||
if arch in ['x86_64', 'Darwin'] and os.path.exists(Dir("#tools/").get_abspath()):
|
||||
qt_env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]
|
||||
|
||||
replay_lib_src = ["replay/replay.cc", "replay/filereader.cc", "replay/framereader.cc"]
|
||||
|
||||
@@ -50,7 +50,7 @@ Networking::Networking(QWidget* parent, bool show_advanced) : QFrame(parent) {
|
||||
main_layout->addWidget(an);
|
||||
|
||||
QPalette pal = palette();
|
||||
pal.setColor(QPalette::Background, QColor(0x29, 0x29, 0x29));
|
||||
pal.setColor(QPalette::Window, QColor(0x29, 0x29, 0x29));
|
||||
setAutoFillBackground(true);
|
||||
setPalette(pal);
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ void Replay::stream() {
|
||||
}
|
||||
|
||||
uint64_t tm = e.getLogMonoTime();
|
||||
current_ts = std::max(tm - route_start_ts, (unsigned long)0) / 1e9;
|
||||
current_ts = std::max(tm - route_start_ts, (uint64_t)0) / 1e9;
|
||||
|
||||
if (socks.contains(type)) {
|
||||
float timestamp = (tm - route_start_ts)/1e9;
|
||||
|
||||
Reference in New Issue
Block a user