mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-28 20:26:06 +08:00
Removed unneeded check in RenderText() loop + disable static analyzer false-positive warnings.
This commit is contained in:
+3
-3
@@ -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)
|
for (int ny = data->Height; ny > 0; ny--, pixels += pitch)
|
||||||
{
|
{
|
||||||
@@ -5631,8 +5631,8 @@ begin:
|
|||||||
}
|
}
|
||||||
|
|
||||||
const ImFontGlyph* glyph = baked->FindGlyph((ImWchar)c);
|
const ImFontGlyph* glyph = baked->FindGlyph((ImWchar)c);
|
||||||
if (glyph == NULL)
|
//if (glyph == NULL)
|
||||||
continue;
|
// continue;
|
||||||
|
|
||||||
float char_width = glyph->AdvanceX * scale;
|
float char_width = glyph->AdvanceX * scale;
|
||||||
if (glyph->Visible)
|
if (glyph->Visible)
|
||||||
|
|||||||
+2
-2
@@ -4516,8 +4516,8 @@ static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex
|
|||||||
q2[0] = (float)x2;
|
q2[0] = (float)x2;
|
||||||
q2[1] = (float)y2;
|
q2[1] = (float)y2;
|
||||||
if (equal(q0,q1) || equal(q1,q2)) {
|
if (equal(q0,q1) || equal(q1,q2)) {
|
||||||
x0 = (int)verts[i-1].x;
|
x0 = (int)verts[i-1].x; //-V1048
|
||||||
y0 = (int)verts[i-1].y;
|
y0 = (int)verts[i-1].y; //-V1048
|
||||||
x1 = (int)verts[i ].x;
|
x1 = (int)verts[i ].x;
|
||||||
y1 = (int)verts[i ].y;
|
y1 = (int)verts[i ].y;
|
||||||
if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) {
|
if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user