From 522d580db1cf40c1f09daaf81c2a129096ca81e7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 29 Sep 2025 11:47:08 +0200 Subject: [PATCH] tour:: support SIDE screens --- graph.cpp | 1 + tour.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/graph.cpp b/graph.cpp index bc487714..cb6df582 100644 --- a/graph.cpp +++ b/graph.cpp @@ -1843,6 +1843,7 @@ EX void normalscreen() { if(GDIM == 3 || !outofmap(mouseh.h)) getcstat = '-'; cmode = sm::NORMAL | sm::DOTOUR | sm::CENTER; if(viewdists && show_distance_lists) cmode |= sm::SIDE | sm::MAYDARK; + if(tour::on && (tour::slides[tour::currentslide].flags & tour::SIDE)) cmode |= sm::SIDE; gamescreen(); drawStats(); show_menu_button(); diff --git a/tour.cpp b/tour.cpp index 2b978d88..477d7ca8 100644 --- a/tour.cpp +++ b/tour.cpp @@ -76,6 +76,8 @@ static constexpr flagtype USE_SLIDE_NAME = 128; static constexpr flagtype NOTITLE = 256; /** \brief always display the text, even if going back or texts are disabled */ static constexpr flagtype ALWAYS_TEXT = 256; +/** \brief add a sidescreen to a normal screen */ +static constexpr flagtype SIDE = 512; #endif EX vector restorers;