Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 3, 2024
1 parent de08c5c commit 681afd6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ void AbstractRunner::RenderGui()

if (params.appWindowParams.borderless) // Need to add params.appWindowParams.borderlessResizable
{
#if !defined(HELLOIMGUI_MOBILEDEVICE) && !defined(__EMSCRIPTEN__)
bool shouldClose = HandleBorderlessMovable(mWindow,
mBackendWindowHelper.get(),
params.appWindowParams.borderlessMovable,
Expand All @@ -517,6 +518,7 @@ void AbstractRunner::RenderGui()
);
if (shouldClose)
params.appShallExit = true;
#endif
}

if (params.callbacks.ShowGui)
Expand Down
2 changes: 1 addition & 1 deletion src/hello_imgui/internal/borderless_movable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace HelloImGui
ImRect btnArea(btnPos, btnPos + btnSize);

auto colorButton = ImGui::GetColorU32(ImGuiCol_Button, 0.95f);
colorButton = 0xFF000099;
colorButton = 0xFF0000BB;
ImGui::GetForegroundDrawList()->AddCircleFilled(
btnArea.GetCenter(),
btnSize.x * 0.5f,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ void DemoAssets(AppState& appState)
ImGui::Dummy(HelloImGui::EmToVec2(0.f, 0.45f));
ImGui::Text("Hello");
HelloImGui::EndGroupColumn();
HelloImGui::ImageFromAsset("world.png", HelloImGui::EmToVec2(2.5f, 2.5f));
HelloImGui::ImageFromAsset("images/world.png", HelloImGui::EmToVec2(2.5f, 2.5f));
}

void DemoFonts(AppState& appState)
Expand All @@ -313,20 +313,20 @@ void DemoFonts(AppState& appState)
{
ImGui::PushFont(appState.EmojiFont);
// ✌️ (Victory Hand Emoji)
ImGui::Text(u8"\U0000270C\U0000FE0F");
ImGui::Text("\U0000270C\U0000FE0F");
ImGui::SameLine();

// ❤️ (Red Heart Emoji)
ImGui::Text(u8"\U00002764\U0000FE0F");
ImGui::Text("\U00002764\U0000FE0F");
ImGui::SameLine();

#ifdef IMGUI_USE_WCHAR32
// 🌴 (Palm Tree Emoji)
ImGui::Text(u8"\U0001F334");
ImGui::Text("\U0001F334");
ImGui::SameLine();

// 🚀 (Rocket Emoji)
ImGui::Text(u8"\U0001F680");
ImGui::Text("\U0001F680");
ImGui::SameLine();
#endif

Expand Down

0 comments on commit 681afd6

Please sign in to comment.