mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user