Skip to content

Commit

Permalink
fix ImGui setting file path. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Jun 5, 2024
1 parent cd6ddba commit 654c6e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/GUI/ImGuiDora.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ bool ImGuiDora::init() {
io.SetPlatformImeDataFn = SetPlatformImeDataFn;
io.ClipboardUserData = nullptr;

_iniFilePath = SharedContent.getWritablePath() + "imgui.ini";
_iniFilePath = Path::concat({SharedContent.getWritablePath(), "imgui.ini"sv});
io.IniFilename = _iniFilePath.c_str();

_sampler = bgfx::createUniform("s_texColor", bgfx::UniformType::Sampler);
Expand Down Expand Up @@ -1471,8 +1471,7 @@ void ImGuiDora::handleEvent(const SDL_Event& event) {
Size winSize = SharedApplication.getWinSize();
ImGui::GetIO().AddMousePosEvent(
s_cast<float>(event.motion.x) * visualSize.width / winSize.width,
s_cast<float>(event.motion.y) * visualSize.height / winSize.height
);
s_cast<float>(event.motion.y) * visualSize.height / winSize.height);
break;
}
case SDL_KEYDOWN:
Expand Down

0 comments on commit 654c6e4

Please sign in to comment.