mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
Android:: prevent android buttons from being too close from the center
This commit is contained in:
parent
f4607b63f4
commit
6f81743488
@ -1305,6 +1305,8 @@ EX void displayabutton(int px, int py, string s, int col) {
|
||||
if(vid.stereo_mode == sLR) rad = 99999;
|
||||
int vrx = min(rad, vid.xres/2 - 40);
|
||||
int vry = min(rad, min(current_display->ycenter, vid.yres - current_display->ycenter) - 20);
|
||||
vrx = max(vrx, vid.xres/3);
|
||||
vry = max(vry, vid.yres/3);
|
||||
int x = current_display->xcenter + px * vrx;
|
||||
int y = current_display->ycenter + py * (vry - siz/2);
|
||||
int vrr = int(hypot(vrx, vry) * sqrt(2.));
|
||||
|
Loading…
Reference in New Issue
Block a user