Convert span with dynamic extent to static extent

In some places we know the size at compile time, so use that knowlage.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-08-13 20:55:01 +02:00
parent 2cedb48de2
commit 77e05ca26d
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ void CFont::BlendGlyphBitmapToTextureRGBA(const FT_Bitmap& bitmap, int targetX,
for (uint x{0}; x != bitmap.width; ++x)
{
const std::span<u8> tempDstRow{dstRow + x * m_TextureFormatStride, 4};
const std::span<u8, 4> tempDstRow{dstRow + x * m_TextureFormatStride, 4};
u8 alpha{srcRow[x]};
const float srcAlpha{m_StrokeWidth > 0 ? (*m_GammaCorrectionLUT)[alpha] : alpha/255.0f};