Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Jan 6, 2024
1 parent a615feb commit eaa9a17
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions include/mainwindow.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <filesystem>
#include <functional>
#include <string>
#include <unordered_map>
#include <vector>

struct Star
Expand Down
9 changes: 6 additions & 3 deletions src/app.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ int imgui_main(int argc, char* argv[])
ImFontConfig config;
config.MergeMode = true;
config.GlyphMinAdvanceX = small_size;
config.GlyphOffset.y = small_size / 4;
io.Fonts->AddFontFromMemoryCompressedTTF(MaterialIcons_compressed_data,
MaterialIcons_compressed_size, small_size, &config,
icon_ranges);

config.GlyphMinAdvanceX = big_size;
config.GlyphOffset.y = big_size / 4;
big_font = io.Fonts->AddFontFromMemoryCompressedTTF(CourierPrime_compressed_data,
CourierPrime_compressed_size, big_size);
io.Fonts->AddFontFromMemoryCompressedTTF(MaterialIcons_compressed_data,
Expand Down Expand Up @@ -350,10 +352,11 @@ void Settings::ReinitCoresFrontend()
int widget_id = 0;
for (const auto& [category, widget_list] : widgets)
{
if (category != "#__root__")
std::string category_string = category;
if (category_string != "#__root__")
{
core_functions.push_back([category]() {
ImGui::Text("%s", category.c_str());
core_functions.push_back([category_string]() {
ImGui::Text("%s", category_string.c_str());
ImGui::Separator();
ImGui::Indent();
});
Expand Down
3 changes: 3 additions & 0 deletions src/mainwindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ void MainWindow::draw_about() {}
void MainWindow::draw_settings()
{
ImGui::Text(ICON_MD_SETTINGS " Settings");
ImGui::BeginChild("##settings", ImVec2(0, 0), ImGuiChildFlags_Border,
ImGuiWindowFlags_NoScrollbar);
if (ImGui::Checkbox("Enable fancy GUI", &fancy_gui))
{
Settings::Set("fancy_gui", fancy_gui ? "true" : "false");
Expand Down Expand Up @@ -301,6 +303,7 @@ void MainWindow::draw_settings()
ImGui::PopID();
}
open_core_settings = -1;
ImGui::EndChild();
}

void MainWindow::draw_stars(ImVec2 center, float radius)
Expand Down
4 changes: 2 additions & 2 deletions vendored/toml11/toml/exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ inline std::string str_error(int errnum)
constexpr std::size_t bufsize = 256;
std::array<char, bufsize> buf;
buf.fill('\0');
const char* result = strerror_r(errnum, buf.data(), bufsize);
return std::string(result);
// const char* result = strerror_r(errnum, buf.data(), bufsize);
return std::string("toml11 error - hydra patch");
#elif (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || ( defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200112L ) // macOS
constexpr std::size_t bufsize = 256;
std::array<char, bufsize> buf;
Expand Down

0 comments on commit eaa9a17

Please sign in to comment.