refactor(core/rendering): FONT_SIZE_PX compartit a hud_constants.hpp (HC-05)

Notifier::TEXT_SIZE i el TEXT_SIZE del namespace anònim de render_info
declaraven, els dos, "8" com l'alçada del glif de 8bithud. Ara
Rendering::Hud::FONT_SIZE_PX (a core/rendering/hud_constants.hpp) és
l'única font de veritat; Notifier i RenderInfo l'inclouen.

HC-04 (moure la resta de constants HUD a YAML) es marca DEFERRED al
document: és una feature de runtime-config, no pura neteja.

Build + smoke 5s xvfb OK (exit 124).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
JailDesignerandClaude Opus 4.7 committed 2026-04-20 10:01:19 +02:00
1 parent e1e8bc11a5
commit f692739fed
4 files changed
+22 -6

No files matched your search

+3 -2
View File
@@ -6,6 +6,8 @@
#include <memory>
#include <string>
#include "core/rendering/hud_constants.hpp"
class Text;
// Popup transitori a dalt i centrat. Entra lliscant des de dalt, es queda
@@ -34,8 +36,7 @@ class Notifier {
static constexpr int PADDING_H = 6;
static constexpr int PADDING_V = 3;
static constexpr int TEXT_SIZE = 8;
static constexpr int HEIGHT = TEXT_SIZE + (2 * PADDING_V);
static constexpr int HEIGHT = Rendering::Hud::FONT_SIZE_PX + (2 * PADDING_V);
static constexpr int MARGIN_TOP = 2; // Separació amb la vora superior del canvas.
static constexpr float SLIDE_SPEED = 120.0F;