mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-06 22:15:07 +00:00
WIP - Fix for password fields
This commit is contained in:
parent
50b2a81ee6
commit
78e674d16c
1 changed files with 5 additions and 2 deletions
|
@ -4286,9 +4286,12 @@ void ImGui::PushPasswordFont()
|
|||
out_font->Ascent = in_font->Ascent;
|
||||
out_font->Descent = in_font->Descent;
|
||||
out_font->ContainerAtlas = in_font->ContainerAtlas;
|
||||
out_font->FallbackGlyphIndex = in_font->Glyphs.index_from_ptr(glyph); // FIXME: broken
|
||||
out_font->Glyphs.resize(0);
|
||||
out_font->Glyphs.push_back(*glyph);
|
||||
out_font->FallbackGlyphIndex = 0;
|
||||
out_font->FallbackAdvanceX = glyph->AdvanceX;
|
||||
IM_ASSERT(out_font->Glyphs.Size == 0 && out_font->IndexAdvanceX.Size == 0 && out_font->IndexLookup.Size == 0);
|
||||
out_font->LockDisableLoading = true;
|
||||
IM_ASSERT(out_font->Glyphs.Size == 1 && out_font->IndexAdvanceX.Size == 0 && out_font->IndexLookup.Size == 0);
|
||||
PushFont(out_font);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue