From cd511585aecadaf0fd3c9d1a1c0bdde7e19e4bd6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 27 Nov 2018 02:33:10 +0100 Subject: [PATCH] fixed a bug with sidescreen working --- graph.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/graph.cpp b/graph.cpp index bd2b9768..4754dd8c 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5473,8 +5473,6 @@ void drawmovestar(double dx, double dy) { // old style joystick control -bool sidescreen; - bool dronemode; purehookset hooks_calcparam; @@ -5499,20 +5497,20 @@ void calcparam() { cd->scrsize = realradius - (inHighQual ? 0 : ISANDROID ? 2 : ISIOS ? 40 : 40); - sidescreen = false; + current_display->sidescreen = false; if(vid.xres < vid.yres - 2 * vid.fsize && !inHighQual) { cd->ycenter = vid.yres - cd->scrsize - vid.fsize; } else { if(vid.xres >= vid.yres * 5/4-16 && (cmode & sm::SIDE)) - sidescreen = true; + current_display->sidescreen = true; #if CAP_TOUR if(tour::on && (tour::slides[tour::currentslide].flags & tour::SIDESCREEN)) - sidescreen = true; + current_display->sidescreen = true; #endif - if(sidescreen) cd->xcenter = vid.yres/2; + if(current_display->sidescreen) cd->xcenter = vid.yres/2; } cd->radius = vid.scale * cd->scrsize; @@ -5599,7 +5597,7 @@ void gamescreen(int _darken) { _darken += 2; } - if((cmode & sm::MAYDARK) && !sidescreen) { + if((cmode & sm::MAYDARK) && !current_display->sidescreen) { _darken += 2; }