fix: corregir escalado de texto en resoluciones altas y F4 fullscreen

- updatePhysicalWindowSize() acepta logical_height opcional para
  actualizar logical_window_height_ al entrar/salir de F4 real fullscreen
- Engine pasa current_screen_height_ a UIManager en cada cambio de
  tamaño físico, propagando la resolución lógica correcta
- calculateFontSize() subdivide el rango >=900px en tres tramos más
  conservadores (/40, /48, /60) para evitar texto excesivamente grande
  en resoluciones como 2000x1200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-20 23:56:59 +01:00
parent 33cb995872
commit 46b24bf075
3 changed files with 20 additions and 5 deletions

View File

@@ -111,8 +111,9 @@ class UIManager {
* @brief Actualiza tamaño físico de ventana (cambios de fullscreen)
* @param width Nuevo ancho físico
* @param height Nuevo alto físico
* @param logical_height Nuevo alto lógico (0 = sin cambio)
*/
void updatePhysicalWindowSize(int width, int height);
void updatePhysicalWindowSize(int width, int height, int logical_height = 0);
// === Getters ===