about summary refs log tree commit diff stats
path: root/ext/wittle_generator/Generate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wittle_generator/Generate.cpp')
-rw-r--r--ext/wittle_generator/Generate.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/ext/wittle_generator/Generate.cpp b/ext/wittle_generator/Generate.cpp index 49ffe96..4cc3ce9 100644 --- a/ext/wittle_generator/Generate.cpp +++ b/ext/wittle_generator/Generate.cpp
@@ -55,8 +55,28 @@ void Generate::initPanel() {
55 init_treehouse_layout(); 55 init_treehouse_layout();
56 } 56 }
57 if (hasFlag(Config::RegularStartEnd)) { 57 if (hasFlag(Config::RegularStartEnd)) {
58 setSymbol(Decoration::Start, 0, _panel->height() - 1); 58 if (_symmetry == Panel::Rotational) {
59 setSymbol(Decoration::Exit, _panel->width() - 1, 0); 59 setSymbol(Decoration::Start, 0, 0);
60 setSymbol(Decoration::Exit, 0, _panel->height() - 1);
61
62 setSymbol(Decoration::Start, _panel->width() - 1, _panel->height() - 1);
63 setSymbol(Decoration::Exit, _panel->width() - 1, 0);
64 } else if (_symmetry == Panel::Vertical) {
65 setSymbol(Decoration::Exit, 0, 0);
66 setSymbol(Decoration::Start, 0, _panel->height() - 1);
67
68 setSymbol(Decoration::Start, _panel->width() - 1, _panel->height() - 1);
69 setSymbol(Decoration::Exit, _panel->width() - 1, 0);
70 } else if (_symmetry == Panel::Horizontal) {
71 setSymbol(Decoration::Start, 0, 0);
72 setSymbol(Decoration::Start, 0, _panel->height() - 1);
73
74 setSymbol(Decoration::Exit, _panel->width() - 1, _panel->height() - 1);
75 setSymbol(Decoration::Exit, _panel->width() - 1, 0);
76 } else {
77 setSymbol(Decoration::Start, 0, _panel->height() - 1);
78 setSymbol(Decoration::Exit, _panel->width() - 1, 0);
79 }
60 } 80 }
61 81
62 if (_custom_grid.size() > 82 if (_custom_grid.size() >