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:
@@ -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 ===
|
||||
|
||||
|
||||
Reference in New Issue
Block a user