From d7d0e0a0476a0adf3d59f23f234cafb0ce9f43f0 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 22 Jun 2021 11:14:44 +0200 Subject: [PATCH] add env variable for wider ui old-commit-hash: 9159094b62dc331d7f5f74b3ac9acdb8002d83f2 --- selfdrive/ui/qt/qt_window.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/qt_window.h b/selfdrive/ui/qt/qt_window.h index 8983d2ff7a..307de6b29f 100644 --- a/selfdrive/ui/qt/qt_window.h +++ b/selfdrive/ui/qt/qt_window.h @@ -13,8 +13,7 @@ #include "selfdrive/hardware/hw.h" -// const int vwp_w = Hardware::TICI() ? 2160 : 1920; -const int vwp_w = 2160; +const int vwp_w = (Hardware::TICI() || (getenv("WIDE_UI") != NULL)) ? 2160 : 1920; const int vwp_h = 1080; inline void setMainWindow(QWidget *w) {