mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-16 20:32:43 -07:00
Hopefully fixed SLA dialog scaling issues on OSX
This commit is contained in:
@@ -186,7 +186,14 @@ void ImGuiWrapper::render()
|
||||
ImVec2 ImGuiWrapper::calc_text_size(const wxString &text)
|
||||
{
|
||||
auto text_utf8 = into_u8(text);
|
||||
return ImGui::CalcTextSize(text_utf8.c_str());
|
||||
ImVec2 size = ImGui::CalcTextSize(text_utf8.c_str());
|
||||
|
||||
#ifndef __APPLE__
|
||||
size.x *= m_style_scaling;
|
||||
size.y *= m_style_scaling;
|
||||
#endif
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
void ImGuiWrapper::set_next_window_pos(float x, float y, int flag)
|
||||
|
||||
Reference in New Issue
Block a user