Temporary workaround for icon misalignment

Quick temporary fix for #8194 for the release of R28.
This commit is contained in:
Vantha 2026-01-09 11:44:56 +01:00 committed by Phosit
parent 68e625ab7a
commit 7fd788af0f

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -149,6 +149,9 @@ void CGUIString::GenerateTextCall(const CGUI& pGUI, SFeedback& Feedback, CStrInt
TextCall.m_Size = size;
SpriteCall.m_Area = size;
// Temporary workaround for a fundamental misalignment issue.
SpriteCall.m_Area += CSize2D{0.f, -3.f};
// Handle additional attributes
for (const TextChunk::Tag::TagAttribute& tagAttrib : tag.m_TagAttributes)
{