mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-24 00:28:38 -07:00
Fix unreadable overlay elements in 3D view on XWayland/Intel - closes #10287
This commit is contained in:
parent
bd6cfd6cec
commit
2be58ca79d
1 changed files with 4 additions and 0 deletions
|
|
@ -2720,6 +2720,10 @@ void ImGuiWrapper::init_font(bool compress)
|
|||
builder.BuildRanges(&ranges); // Build the final result (ordered ranges with all the unique characters submitted)
|
||||
|
||||
io.Fonts->Flags |= ImFontAtlasFlags_NoPowerOfTwoHeight;
|
||||
// Limit texture height to avoid exceeding GL_MAX_TEXTURE_SIZE
|
||||
// Make the atlas wider to keep it shorter (height limit might be 16384 on XWayland)
|
||||
io.Fonts->TexDesiredWidth = 8192;
|
||||
|
||||
ImFontConfig cfg = ImFontConfig();
|
||||
cfg.OversampleH = cfg.OversampleV = 1;
|
||||
//FIXME replace with io.Fonts->AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, m_font_size, nullptr, ranges.Data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue