From 7fd788af0f696990a01cdf0894f8781feb36fbbc Mon Sep 17 00:00:00 2001 From: Vantha Date: Fri, 9 Jan 2026 11:44:56 +0100 Subject: [PATCH] Temporary workaround for icon misalignment Quick temporary fix for #8194 for the release of R28. --- source/gui/SettingTypes/CGUIString.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/gui/SettingTypes/CGUIString.cpp b/source/gui/SettingTypes/CGUIString.cpp index 33734f309d..65f1e74da6 100644 --- a/source/gui/SettingTypes/CGUIString.cpp +++ b/source/gui/SettingTypes/CGUIString.cpp @@ -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) {