mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 05:17:17 +00:00
fixed screensize/radius in portrait
This commit is contained in:
parent
166ad63180
commit
beffe5b756
12
graph.cpp
12
graph.cpp
@ -5376,15 +5376,10 @@ void calcparam() {
|
||||
|
||||
vid.scrsize = vid.ycenter - (inHighQual ? 0 : ISANDROID ? 2 : ISIOS ? 40 : 40);
|
||||
|
||||
vid.radius = vid.scale * vid.scrsize;
|
||||
|
||||
realradius = min(realradius, vid.radius);
|
||||
|
||||
sidescreen = false;
|
||||
|
||||
if(vid.xres < vid.yres && !inHighQual) {
|
||||
vid.radius = int(vid.scale * vid.xcenter) - (ISIOS ? 10 : 2);
|
||||
vid.ycenter = vid.yres - realradius - vid.fsize - (ISIOS ? 10 : 0);
|
||||
if(vid.xres < vid.yres - 2 * vid.fsize && !inHighQual) {
|
||||
vid.ycenter = vid.yres - vid.scrsize - vid.fsize;
|
||||
}
|
||||
else {
|
||||
if(vid.xres >= vid.yres * 5/4-16 && (cmode & sm::SIDE))
|
||||
@ -5396,6 +5391,9 @@ void calcparam() {
|
||||
|
||||
if(sidescreen) vid.xcenter = vid.yres/2;
|
||||
}
|
||||
|
||||
vid.radius = vid.scale * vid.scrsize;
|
||||
realradius = min(realradius, vid.radius);
|
||||
|
||||
if(dronemode) { vid.ycenter -= vid.radius; vid.ycenter += vid.fsize/2; vid.ycenter += vid.fsize/2; vid.radius *= 2; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user