mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-24 18:32:06 +08:00
use sp's
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#ifdef SUNNYPILOT
|
||||
#include "selfdrive/ui/sunnypilot/ui.h"
|
||||
#include "selfdrive/ui/sunnypilot/qt/maps/map.h"
|
||||
#define MapWindow MapWindowSP
|
||||
#else
|
||||
#include "selfdrive/ui/ui.h"
|
||||
#include "selfdrive/ui/qt/maps/map.h"
|
||||
|
||||
@@ -8,6 +8,10 @@ MapWindowSP::MapWindowSP(const QMapLibre::Settings &settings) : MapWindow(settin
|
||||
QObject::connect(uiStateSP(), &UIStateSP::uiUpdate, this, &MapWindowSP::updateState);
|
||||
}
|
||||
|
||||
MapWindowSP::~MapWindowSP() {
|
||||
makeCurrent();
|
||||
}
|
||||
|
||||
void MapWindowSP::initLayers() {
|
||||
if (!m_map->layerExists("navLayer")) {
|
||||
m_map->setPaintProperty("navLayer", "line-color", getNavPathColor(uiStateSP()->scene.navigate_on_openpilot_deprecated));
|
||||
|
||||
Reference in New Issue
Block a user