mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-06 00:36:32 +08:00
Qt: new global WIDE_UI (#21977)
This commit is contained in:
@@ -72,8 +72,8 @@ private:
|
||||
QRect(303, 755, 718, 189),
|
||||
};
|
||||
|
||||
const QString IMG_PATH = vwp_w == 2160 ? "../assets/training_wide/" : "../assets/training/";
|
||||
const QVector<QRect> boundingRect = vwp_w == 2160 ? boundingRectWide : boundingRectStandard;
|
||||
const QString IMG_PATH = WIDE_UI ? "../assets/training_wide/" : "../assets/training/";
|
||||
const QVector<QRect> boundingRect = WIDE_UI ? boundingRectWide : boundingRectStandard;
|
||||
|
||||
signals:
|
||||
void completedTraining();
|
||||
|
||||
@@ -19,7 +19,8 @@ const QString ASSET_PATH = ":/";
|
||||
const QString ASSET_PATH = "../assets/";
|
||||
#endif
|
||||
|
||||
const int vwp_w = (Hardware::TICI() || (getenv("WIDE_UI") != NULL)) ? 2160 : 1920;
|
||||
const bool WIDE_UI = Hardware::TICI() || getenv("WIDE_UI") != nullptr;
|
||||
const int vwp_w = WIDE_UI ? 2160 : 1920;
|
||||
const int vwp_h = 1080;
|
||||
|
||||
inline void setMainWindow(QWidget *w) {
|
||||
|
||||
Reference in New Issue
Block a user