macOS retina scaling fixes, M1 Vulkan vsync workaround, CMakeLists OpenMP path fix for Apple
This commit is contained in:
parent
279c95422d
commit
8bc8d14cf2
10 changed files with 33 additions and 21 deletions
|
|
@ -78,8 +78,10 @@ namespace vks
|
|||
}
|
||||
#else
|
||||
const std::string filename = getAssetPath() + "Roboto-Medium.ttf";
|
||||
io.Fonts->AddFontFromFileTTF(filename.c_str(), 16.0f);
|
||||
#endif
|
||||
io.Fonts->AddFontFromFileTTF(filename.c_str(), 16.0f * scale);
|
||||
ImGuiStyle& style = ImGui::GetStyle();
|
||||
style.ScaleAllSizes(scale);
|
||||
#endif
|
||||
io.Fonts->GetTexDataAsRGBA32(&fontData, &texWidth, &texHeight);
|
||||
VkDeviceSize uploadSize = texWidth*texHeight * 4 * sizeof(char);
|
||||
|
||||
|
|
@ -492,4 +494,4 @@ namespace vks
|
|||
ImGui::TextV(formatstr, args);
|
||||
va_end(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue