Skip to content

Commit

Permalink
clean demos
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Apr 12, 2024
1 parent aeedc1e commit 7f515ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
HelloImGui::FontDpiResponsive * gCustomFont = nullptr;
void MyLoadFonts()
{

HelloImGui::ImGuiDefaultSettings::LoadDefaultFont_WithFontAwesomeIcons(); // The font that is loaded first is the default font
gCustomFont = HelloImGui::LoadFontDpiResponsive("fonts/Akronim-Regular.ttf", 40.f); // will be loaded from the assets folder
HelloImGui::GetRunnerParams()->dpiAwareParams.onlyUseFontDpiResponsive = true;
HelloImGui::ImGuiDefaultSettings::LoadDefaultFont_WithFontAwesomeIcons(); // The font that is loaded first is the default font
gCustomFont = HelloImGui::LoadFontDpiResponsive("fonts/Akronim-Regular.ttf", 40.f); // will be loaded from the assets folder
}


Expand Down Expand Up @@ -76,10 +76,6 @@ int main(int , char *[]) {

params.imGuiWindowParams.showMenuBar = true;
params.imGuiWindowParams.showMenu_App = false;

params.dpiAwareParams.onlyUseFontDpiResponsive = true;
params.remoteParams.enableRemoting = true;

HelloImGui::Run(params);
return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -794,10 +794,6 @@ int main(int, char**)
//runnerParams.rendererBackendType = HelloImGui::RendererBackendType::Vulkan;

runnerParams.remoteParams.enableRemoting = true;
//runnerParams.dpiAwareParams.dpiWindowSizeFactor = 1.0f;
//runnerParams.dpiAwareParams.fontRenderingScale = 1.0f;

runnerParams.platformBackendType = HelloImGui::PlatformBackendType::Sdl;

HelloImGui::Run(runnerParams); // Note: with ImGuiBundle, it is also possible to use ImmApp::Run(...)

Expand Down

0 comments on commit 7f515ee

Please sign in to comment.