1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

less awkward map position in portrait

This commit is contained in:
Zeno Rogue 2020-04-06 08:46:32 +02:00
parent 134d7493ed
commit 7fc0d5b051

View File

@ -4768,7 +4768,7 @@ EX void calcparam() {
current_display->sidescreen = permaside; current_display->sidescreen = permaside;
if(vid.xres < vid.yres - 2 * vid.fsize && !inHighQual && !in_perspective()) { if(vid.xres < vid.yres - 2 * vid.fsize && !inHighQual && !in_perspective()) {
cd->ycenter = vid.yres - cd->scrsize - vid.fsize; cd->ycenter = lerp(vid.fsize + cd->scrsize, vid.yres - cd->scrsize - vid.fsize, .8);
} }
else { else {
if(vid.xres > vid.yres * 4/3+16 && (cmode & sm::SIDE)) if(vid.xres > vid.yres * 4/3+16 && (cmode & sm::SIDE))