refactor(core/rendering): Rendering::OPAQUE_ALPHA constant (HC-02)

Surface i Screen repetien el bit d'alpha opac com a 0xFF000000U o com
(0xFFU << 24). S'afegeix inline constexpr Rendering::OPAQUE_ALPHA a
canvas.hpp i s'usa a les tres ocurrències.

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 09:55:40 +02:00
1 parent be94a4390e
commit 8b413affa8
4 files changed
+13 -7

No files matched your search

+4
View File
@@ -10,6 +10,10 @@
// consumidors no depenguen del cicle de vida de Screen ni del seu header.
namespace Rendering {
// Bit alpha completament opac, ja preposicionat al canal alt del
// píxel ARGB8888. Qualsevol RGB | OPAQUE_ALPHA produeix el píxel final.
inline constexpr std::uint32_t OPAQUE_ALPHA = 0xFF000000U;
struct Canvas {
std::uint32_t* pixels{nullptr};
int width{0};