1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed a bug with sidescreen working

This commit is contained in:
Zeno Rogue 2018-11-27 02:33:10 +01:00
parent 80da98b265
commit cd511585ae

View File

@ -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;
}