Support multiple screen orientation
orontee opened this issue · 1 comments
orontee commented
Support multiple screen orientation
orontee commented
Screen orientation is forced at built time.
I changed the orientation to test current state: Widgets display is ok and interactions work, but the widget layout must be reworked, things look flatten while in landscape mode! Is it worth the trouble? Not clear to me, I am closing this issue, for now.
diff --git a/src/ui.cc b/src/ui.cc
index a9adb94..7c2553f 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -20,8 +20,8 @@ namespace taranis {
Ui::Ui(std::shared_ptr<Config> config, std::shared_ptr<Model> model)
: KeyEventDispatcher{}, config{config}, model{model}, icons{new Icons{}},
fonts{new Fonts{}} {
- SetPanelType(0);
- SetOrientation(0);
+ SetPanelType(PANEL_DISABLED);
+ SetOrientation(1);
this->location_box =
std::make_shared<LocationBox>(0, 0, this->model, this->fonts);