From 00f900a04c8cb317d69c6c1bfb03734a5d647c13 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 1 Nov 2020 20:23:14 +0100 Subject: [PATCH] gamescreen should now be able to draw multiple screens in screenshot --- graph.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/graph.cpp b/graph.cpp index ad775901..22509867 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4978,13 +4978,22 @@ EX void gamescreen(int _darken) { return; } + auto cdc = *current_display; + auto gx = vid.xres; + auto gy = vid.yres; + if(dual::split([=] () { + *current_display = cdc; + vid.xres = gx; + vid.yres = gy; dual::in_subscreen([=] () { gamescreen(_darken); }); })) { calcparam(); return; } + calcparam(); + if((cmode & sm::MAYDARK) && !current_display->sidescreen) { _darken += 2; }