Skip to content

Commit

Permalink
Fixing an issue where CJK/russian fonts draw just a little too high o…
Browse files Browse the repository at this point in the history
…n ImGui (#73616)
  • Loading branch information
katemonster33 authored May 10, 2024
1 parent 14db3ec commit dacd72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cata_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void cataimgui::client::load_fonts( const std::unique_ptr<Font> &cata_font,
io.Fonts->Fonts[0] = cfg.DstFont;
ImGui_ImplSDLRenderer2_SetFallbackGlyphDrawCallback( [&]( const ImFontGlyphToDraw & glyph ) {
std::string uni_string = std::string( glyph.uni_str );
point p( int( glyph.pos.x ), int( glyph.pos.y - 5 ) );
point p( int( glyph.pos.x ), int( glyph.pos.y - 3 ) );
unsigned char col = 0;
auto it = activeFont->sdlColorsToCata.find( glyph.col & 0xFFFFFF );
if( it != activeFont->sdlColorsToCata.end() ) {
Expand Down

0 comments on commit dacd72a

Please sign in to comment.