commit 0b40051a1a09805653363e4b6ab3176759f00312
parent fff2df2bd2570c7ecc4f7b8f63c2087fe4118bf3
Author: Francisco Armando Rosmino <franciscorosmino@rosmino.com.ar>
Date: Sat, 3 Oct 2026 12:48:54 -0300
Vista previa tactil: lugar para los botones altos
En vertical pisaban la primera fila de jugadores y en ancho se salian por
abajo (bot = 44 en vez de 30 cuando hay vista previa y pantalla tactil).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/catan/gfx/screen.c b/catan/gfx/screen.c
@@ -533,7 +533,7 @@ static void log_scrollbar(Surface *s, const UiInfo *ui, int x, int y, int h, int
static void screen_wide(Surface *s, const Game *g, const Ctrl *c, const UiInfo *ui, HitList *hits, BoardGeom *geo)
{
/* el panel crece con pantallas anchas (16:9) para que entren los textos */
- int W = s->w, H = s->h, PW = W * 2 / 5, top = 16, bot = 30;
+ int W = s->w, H = s->h, PW = W * 2 / 5, top = 16, bot = ui->preview && ui->touch ? 44 : 30; /* la vista previa tactil lleva botones altos */
if (PW < 230) PW = 230;
if (PW > 340) PW = 340;
int BW = W - PW;
@@ -756,7 +756,7 @@ static void screen_tall(Surface *s, const Game *g, const Ctrl *c, const UiInfo *
hit_add(hits, 0, top, W, bh, PK_BOARD, 0);
int x = 4, w = W - 8, y = top + bh + 3;
bottom_lines(s, c, ui, x, y, w, false, hits);
- y += 30;
+ y += ui->preview && ui->touch ? 44 : 30; /* la vista previa tactil lleva botones altos */
for (int p = 0; p < g->o.np; p++) {
bool det = !g->p[p].neutral;