1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Removed unneeded check in RenderText() loop + disable static analyzer false-positive warnings.

This commit is contained in:
ocornut 2025-06-11 19:16:50 +02:00
parent df068ce11e
commit 895bff6524
2 changed files with 5 additions and 5 deletions

View file

@ -2874,7 +2874,7 @@ void ImFontAtlasTextureBlockPostProcessMultiply(ImFontAtlasPostProcessData* data
}
}
}
else if (data->Format == ImTextureFormat_RGBA32)
else if (data->Format == ImTextureFormat_RGBA32) //-V547
{
for (int ny = data->Height; ny > 0; ny--, pixels += pitch)
{
@ -5631,8 +5631,8 @@ begin:
}
const ImFontGlyph* glyph = baked->FindGlyph((ImWchar)c);
if (glyph == NULL)
continue;
//if (glyph == NULL)
// continue;
float char_width = glyph->AdvanceX * scale;
if (glyph->Visible)