Skip to content

Commit

Permalink
fixing build errors on windows and emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
wkjarosz committed Feb 9, 2024
1 parent 78e7113 commit 74bebbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ void HDRViewApp::open_image()
[](const string &filename, const string &mime_type, string_view buffer, void *my_data = nullptr)
{
isviewstream is{buffer};
reinterpret_cast<SampleViewer *>(my_data)->load_image(is, filename);
g_app()->load_image(is, filename);
};

string extensions = fmt::format(".{}", fmt::join(Image::loadable_formats(), ",."));
Expand Down Expand Up @@ -605,7 +605,7 @@ void HDRViewApp::close_all_images()

void HDRViewApp::run()
{
ImmApp::AddOnsParams addons{.withImplot = true, .withMarkdown = false};
ImmApp::AddOnsParams addons{/* .withImplot = */ true, /*.withMarkdown = */ false};
ImmApp::Run(m_params, addons);
}

Expand Down

0 comments on commit 74bebbb

Please sign in to comment.