diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/wittle_generator/Generate.cpp | 4 | ||||
-rw-r--r-- | ext/wittle_generator/Generate.h | 2 | ||||
-rw-r--r-- | ext/wittle_generator/Test.cpp | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/ext/wittle_generator/Generate.cpp b/ext/wittle_generator/Generate.cpp index 5776386..49ffe96 100644 --- a/ext/wittle_generator/Generate.cpp +++ b/ext/wittle_generator/Generate.cpp | |||
@@ -54,6 +54,10 @@ void Generate::initPanel() { | |||
54 | if (hasFlag(Config::TreehouseLayout)) { | 54 | if (hasFlag(Config::TreehouseLayout)) { |
55 | init_treehouse_layout(); | 55 | init_treehouse_layout(); |
56 | } | 56 | } |
57 | if (hasFlag(Config::RegularStartEnd)) { | ||
58 | setSymbol(Decoration::Start, 0, _panel->height() - 1); | ||
59 | setSymbol(Decoration::Exit, _panel->width() - 1, 0); | ||
60 | } | ||
57 | 61 | ||
58 | if (_custom_grid.size() > | 62 | if (_custom_grid.size() > |
59 | 0) { // If we want to start with a certain default grid when generating | 63 | 0) { // If we want to start with a certain default grid when generating |
diff --git a/ext/wittle_generator/Generate.h b/ext/wittle_generator/Generate.h index e37c2fd..0dc5fc3 100644 --- a/ext/wittle_generator/Generate.h +++ b/ext/wittle_generator/Generate.h | |||
@@ -48,7 +48,7 @@ class Generate { | |||
48 | TreehouseColors = 0x4000, | 48 | TreehouseColors = 0x4000, |
49 | AlternateColors = 0x8000, | 49 | AlternateColors = 0x8000, |
50 | WriteColors = 0x10000, | 50 | WriteColors = 0x10000, |
51 | Write2Color = 0x20000, | 51 | RegularStartEnd = 0x20000, |
52 | FixBackground = 0x40000, | 52 | FixBackground = 0x40000, |
53 | CombineErasers = 0x80000, | 53 | CombineErasers = 0x80000, |
54 | LongPath = 0x100000, | 54 | LongPath = 0x100000, |
diff --git a/ext/wittle_generator/Test.cpp b/ext/wittle_generator/Test.cpp index 1a2597a..5eaef5a 100644 --- a/ext/wittle_generator/Test.cpp +++ b/ext/wittle_generator/Test.cpp | |||
@@ -2,8 +2,7 @@ | |||
2 | 2 | ||
3 | int main(int, char**) { | 3 | int main(int, char**) { |
4 | Generate generator; | 4 | Generate generator; |
5 | generator.setSymbol(Decoration::Start, 0, 4 * 2); | 5 | generator.setFlag(Generate::RegularStartEnd); |
6 | generator.setSymbol(Decoration::Exit, 4 * 2, 0); | ||
7 | /*generator.generate(4 * 2 + 1, 4 * 2 + 1, | 6 | /*generator.generate(4 * 2 + 1, 4 * 2 + 1, |
8 | {{{Decoration::Triangle | Decoration::Orange, 6}}});*/ | 7 | {{{Decoration::Triangle | Decoration::Orange, 6}}});*/ |
9 | generator.generate( | 8 | generator.generate( |